Sunday, 15 April 2012

php - How to prevent CKFinder renaming files with multiple extensions? -


When I upload files with multiple extensions using ckfinders (with PHP), it gives them names The dots change with the underscore for everyone, the last one. For example it will change the name of file.1.1.jpg to file_1_1.jpg . Stops setting the property to false but I do not know why it is being applied because 1 is not a disapproved character and my deniedExtensions resource type I'm uploading for the list Also, I really do not want to disable it because I want security - but if it is broken it does not have much use. However I can not find any other config items related to this.

How can I stop CKFinder from renaming these files without losing this security?

If allowed extension is defined then its deniedExtensions < / Code> if the 1 is not in the list of permitted extensions, this means the same as for CKFinder for exe or php .

How can I rename these files without losing this security?

What is the only way to achieve what you want in CKFinders 2.x is to expand the list of approved extensions.

If you have to fill and there will be an important demand for such a facility, then we can provide a few ways to define a callback in which you can use the file name Can be secured.


No comments:

Post a Comment