note 41871 added to features.file-upload
| From: | TRUSTpunk at rn2 dot php dot net | Date: | Sat, 24 Apr 2004 09:22:49 +0000 |
| Subject: | note 41871 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68717@lists.php.net to get a copy of this message | ||
I just wanted to say that , using the code specified
cannot handle all file names that are valid , if you was
to upload a file named , image's.gif , the file won't upload
due to the fact that you did not use the stripslashes()
function , if you was to add this at the top of your PHP code
Assuming Register Globals = On
$file_name = stripslashes ($file_name);
-----------------------------------------------------------
This will allow you to upload file names like image's.gif
without PHP adding the \ to escape the ' character.
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41871
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41871&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41871&report=yes
Search -- http://master.php.net/manage/user-notes.php