(<pre> changed to <source> with ASP syntax coloring) |
|||
Line 1: | Line 1: | ||
− | {{Ckfinder_2.x Image upload Description|code=< | + | {{Ckfinder_2.x Image upload Description|code=<source lang="asp">CKFinder_Config.Add "SecureImageUploads", true</source>}} |
Latest revision as of 13:30, 29 March 2011
Sometimes a user can try to upload a file which is not an image file but appears to be one. Example: You have a text file called document.jpeg
and you try to upload it. You can enable the image checking function by setting it to true
in the following way:
CKFinder_Config.Add "SecureImageUploads", true
With this configuration the program will check the dimensions of the file. If they equal zero, then the file is considered to not be an image and it will be rejected be CKFinder.