Any idea why this might have happened all of a sudden? I have been able to upload images for months without any trouble and then this last week when trying to upload I get the error saying that the uploaded file is corrupt. This happens with every single image that I have attempted to upload. I've tried to download the latest version of CK and upload that in hopes that it was a bug that was fixed but I still am unable to upload anything.
Thoughts?
I am using this in conjunction with the editor.
Thoughts?
I am using this in conjunction with the editor.
Re: The uploaded file is corrupt.
Assuming that you're using the PHP version of server connector (it should work similar in other connectors), the problem might be:
- you're using an old version of CKFinder not compatible with CKEditor (upgrade to 1.4.2)
- somehow the image validation is always returning invalid value - set $config['SecureImageUploads'] to false to see if that helps
- if uploads are working when $config['SecureImageUploads'] is set to false, check whether GD is installed correctly (if you're using PHP)
- sometimes PHP is returning UPLOAD_ERR_PARTIAL during file uploads due to invalid server configuration, in such case CKFinder is returning "the uploaded file is corrupt" error.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+