Page 1 of 1

Uploadify Jquery pugin file name with single quotes issue

Posted: Tue Apr 13, 2010 5:44 am
by sneha414
Hi,
I am using Uploadify JQuery plugin to upload file.

I am struggling to upload file having special characters inside file name especially single quotes. when submitting file having single quote inside; file name on server side in $_FILE array, I m receiving file name portion above the single quote.

For e.g. (original file name) abc'xyz.jpg ,on server side I m receiving xyz.jpg only.
Please guide me to rectify problem

if (!empty($_FILES)) {
$file_name = $_FILES['Filedata']['name'];
echo $file_name;// outputs xyz.jpg

Version i am using -> jquery.uploadify-v2.1.0 (MIT)

Re: Uploadify Jquery pugin file name with single quotes issu

Posted: Tue Apr 13, 2010 6:21 am
by roders
have you tried

Code: Select all

echo addslashes($file_name);

Re: Uploadify Jquery pugin file name with single quotes issu

Posted: Thu Apr 15, 2010 1:28 am
by sneha414
Yes i have already tried it.

Re: Uploadify Jquery pugin file name with single quotes issu

Posted: Thu Apr 15, 2010 8:32 am
by Technocrat
Sounds to me like uploadify might be removing them. Have to looked on their site?