We are having trouble with uploading images using CKFinder. My server and config.aspx file are both set to a max size of 12Mb:
config.aspx: (in bytes)
type.MaxSize = 12582912;
web.config: (in kilobytes)
<httpRuntime maxRequestLength="12288" requestValidationMode="2.0"/>
When a user tries to upload a file larger than 12Mb, CKFinder doesn't provide any feedback about the max size limit. It displays (Upload in progress, please wait...), but never alerts the user that the upload failed. The server is returning a 500 Internal Server error. Is there a better way to do this?
Thu, 04/05/2012 - 22:14
#1
Re: CKFinder not failing gracefully in ASP.Net MVC 3 app
Not sure if this API section will help you, but it might give you some ideas on how to deal with your problem.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: CKFinder not failing gracefully in ASP.Net MVC 3 app
-----------------------------------------------------------------------------------
More information on this problem:
I found that the image in questions was set to 300dpi. The file size was relatively small, though, 350k. This problem seems to be in resizing a 300dpi image, specifically for thumbnails. The uploaded image is properly resized to fit within 1600 x 1200 px, but the thumbnail always throws an Out of Memory exception. Thumbnails are configured to fit within 100 x 100 px.
Since this exception is not caught properly, the UI returns an "Unknown error" message to the user, which is not very helpful to the user.
Does CKFinder 1.4x have a known issue with 300dpi images?
Re: CKFinder not failing gracefully in ASP.Net MVC 3 app
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKFinder not failing gracefully in ASP.Net MVC 3 app