note 37512 added to function.move-uploaded-file
| From: | wolke74 at web dot de | Date: | Tue, 18 Nov 2003 14:02:26 +0000 |
| Subject: | note 37512 added to function.move-uploaded-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60567@lists.php.net to get a copy of this message | ||
French and English filenames --- as it is not forbidden -- often have an apostrophy, for instance
"That's advertisement paper.doc" or "Les aventures d'Alice dans le pays du
miracle.doc". However, uploading such files can run into trouble.
So you can write, if the posted file had been marked by myfile .
if(!move_uploaded_file($_FILES["myfile"]["tmp_name"],
rawurlencode($mydir.$_FILES["myfile"]["name"]))
{
echo "Something is wrong with the file";
exit;
}
----
Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37512
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37512&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37512&report=yes
Search -- http://master.php.net/manage/user-notes.php