note 30166 modified in features.file-upload by jsheets
| From: | jsheets@php.net | Date: | Sun, 09 Mar 2003 15:26:01 +0000 |
| Subject: | note 30166 modified in features.file-upload by jsheets | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-45033@lists.php.net to get a copy of this message | ||
[Editor's Note]If the permissions are set incorrectly in the temporary upload directory
PHP's attempt to unlink the file will fail, resulting in the file not being deleted. [/Note]
Another problem I had was that move_uploaded_file() didn't really move the file, but copied it.
Setting the permissions correctly solved that:
On your WIN2K/IIS5 server:
1. Right-click the C:\PHP\uploadtemp folder
2. Check Read/Write permission to IUSR_<machine>, uncheck the remaining options.
3. Click Advanced and edit the Internet Guest account.
4. Select the option to delete subfolders and files.
5. Click OK a few times.
--was--
Another problem I had was that move_uploaded_file() didn't really move the file, but copied it.
Setting the permissions correctly solved that:
On your WIN2K/IIS5 server:
1. Right-click the C:\PHP\uploadtemp folder
2. Check Read/Write permission to IUSR_<machine>, uncheck the remaining options.
3. Click Advanced and edit the Internet Guest account.
4. Select the option to delete subfolders and files.
5. Click OK a few times.
http://www.php.net/manual/en/features.file-upload.php