Apostrophe in filename of upload when using uploadAddForm
2 posts by 2 authors in: Forums > CMS Builder
Last Post: September 25, 2014 (RSS)
By markr - September 24, 2014
UploadAddForm working great but getting weirdness when the file selected for upload contains apostrophe, e.g. king's horses.jpg
Weirdness like... the thumbnail is a copy of the live webpage.
Can uploadForm3_iframe.php escape it?
By gregThomas - September 25, 2014 - edited: September 25, 2014
Hi Markr,
I've done some local testing using the uploadForm3_iframe.php, but wasn't able to recreate the issue. I named a file:
test3, br'eak.gif
and it was escaped by the system to test3-br-eak.gif after upload.
The uploadFrom3_iframe.php uses the same system to save its files as the CMS Backend, so the file names should theoretically be renamed to be safe for both windows and *nix systems.
Could you give me a few more details on how I can recreate the problem? Do I need to use a specific browser and image format? Are you able to recreate the issue via a CMS upload field as welll? Are you working on Windows or Apple?
Thanks!
Greg
PHP Programmer - interactivetools.com