note 48809 added to features.file-upload
| From: | Tyfud at osu1 dot php dot net | Date: | Fri, 07 Jan 2005 16:44:25 +0000 |
| Subject: | note 48809 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82910@lists.php.net to get a copy of this message | ||
It's important to note that when using the move_uploaded_file() command, that some
configurations (Especially IIS) will fail if you prefix the destination path with a leading
"/". Try the following:
move_uploaded_file($tmpFileName,'uploads/'.$fileName);
Setting up permissions is also a must. Make sure all accounts have write access to your upload
directory, and read access if you wish to view these files later. You might have to chmod() the
directory or file afterwards as well if you're still getting access errors.
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48809
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48809&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48809&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48809&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48809&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48809&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48809&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48809&report=yes
Search -- http://master.php.net/manage/user-notes.php