简体   繁体   中英

Remove apostrophes from filename before the Handler file upload it

Due to some issues with my hosting server supporting apostrophes, I need to remove them from the file o files before they are uploaded.

I'm using the JQuery Upload File script, and this is the link to the UploadHandler script file I need to modify, but I need a little help doing it so. Can someone please tell me what I need to change in this script in order to remove those apostrophes before they are processed?

UploadHandler.php

https://github.com/blueimp/jQuery-File-Upload/blob/master/server/php/UploadHandler.php

Please Help.

You should just be able to add to the function trim_file_name() .

Add this to a new line after line #455

$name = str_replace("'", "", $name);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM