Uploadify Jquery pugin file name with single quotes issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sneha414
Forum Newbie
Posts: 3
Joined: Fri Oct 03, 2008 1:57 am

Uploadify Jquery pugin file name with single quotes issue

Post 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)
roders
Forum Commoner
Posts: 68
Joined: Tue Oct 20, 2009 9:29 am

Re: Uploadify Jquery pugin file name with single quotes issu

Post by roders »

have you tried

Code: Select all

echo addslashes($file_name);
sneha414
Forum Newbie
Posts: 3
Joined: Fri Oct 03, 2008 1:57 am

Re: Uploadify Jquery pugin file name with single quotes issu

Post by sneha414 »

Yes i have already tried it.
User avatar
Technocrat
Forum Contributor
Posts: 127
Joined: Thu Oct 20, 2005 7:01 pm

Re: Uploadify Jquery pugin file name with single quotes issu

Post by Technocrat »

Sounds to me like uploadify might be removing them. Have to looked on their site?
Post Reply