I got this problem resolved this morning, there i would like appreciate http://ckeditor.com/forums/Support/The-solution-of-CKFinders-the-uploaded-file-is-corrupt-for-ASP.Net-4.5
solution:
1. find App_Start/RouteConfig.cs in my .net 4.5 webapplication solution.
2. override ConvertToFriendlyUrl() method as below code:
public class MyWebFormsFriendlyUrlResolver : WebFormsFriendlyUrlResolver
{
public override string ConvertToFriendlyUrl(string path)
{
if (!string.IsNullOrEmpty(path))
{
if (path.ToLower().Contains("/resource/ckfinder"))
{
return path;
}
}
return base.ConvertToFriendlyUrl(path) ;
}
}
public static class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
var settings = new FriendlyUrlSettings();
settings.AutoRedirectMode = RedirectMode.Permanent;
//routes.EnableFriendlyUrls(settings);
routes.EnableFriendlyUrls(settings, new Microsoft.AspNet.FriendlyUrls.Resolvers.IFriendlyUrlResolver[] { new MyWebFormsFriendlyUrlResolver() });
}
}
3. upload again, it works.