Current location: Hot Scripts Forums » Programming Languages » PHP » Uploadify Jquery pugin file name with single quotes issue


Uploadify Jquery pugin file name with single quotes issue

Reply
  #1 (permalink)  
Old 04-13-10, 05:42 AM
sneha414 sneha414 is offline
New Member
 
Join Date: Jan 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Uploadify Jquery pugin file name with single quotes issue

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)
Reply With Quote
  #2 (permalink)  
Old 04-13-10, 07:39 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
When using $_FILES:
Due to the large amount of directory listing styles we cannot guarantee that files with exotic names are handled properly.
I would suggest renaming your file. Using apostrophes in file names is strongly discouraged.
__________________
Jerry Broughton

Last edited by job0107; 04-13-10 at 07:49 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form to Text File Justin171985 PHP 14 02-09-11 11:55 AM
i have a file upload issue.... stormshadow PHP 5 12-03-05 09:57 PM
converting double quote strings to single quotes mike-g2 Perl 5 12-18-04 01:38 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM
Single file security PersuT PHP 1 06-28-03 06:54 AM


All times are GMT -5. The time now is 08:14 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.