(Created page with '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 …') |
(Template title added) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | Sometimes a user can try to upload a file which | + | {{#CUSTOMTITLE:Securing Image Uploads}} |
+ | 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 <code>document.jpeg</code> and you try to upload it. You can enable the image checking function by setting it to <code>true</code> in the following way: | ||
+ | {{{code}}} | ||
+ | |||
+ | 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. |
Latest revision as of 13:27, 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:
{{{code}}}
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.