Image uploads"

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Sometimes a user can try to upload a file which isn't an image file but appears as if it would be a one.
+
{{Ckfinder Image upload Description|code=<pre>$config['SecureImageUploads'] = true;</pre>}}
Example:
 
You have a text file called document.jpeg and you try to upload it. If you enable the function by setting it to '''true''':
 
<pre>
 
$config['SecureImageUploads'] = true;  
 
</pre>
 
the program will check the dimensions of the file. If they are zero the file isn't an image and it will be rejected be the CKFinder.
 

Latest revision as of 07:46, 28 May 2010

Sometimes a user can try to upload a file which isn't an image file but appears as if it would be a one. Example: You have a text file called document.jpeg and you try to upload it. If you enable the function by setting it to true:
$config['SecureImageUploads'] = true;
the program will check the dimensions of the file. If they are zero, then the file isn't an image and it will be rejected be the CKFinder.
This page was last edited on 28 May 2010, at 07:46.