Bug #10386: Uploaded files do not save.
| From: | kyle at discoverdhs dot com | Date: | Wed, 18 Apr 2001 21:25:07 +0000 |
| Subject: | Bug #10386: Uploaded files do not save. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51895@lists.php.net to get a copy of this message | ||
From: kyle@discoverdhs.com
Operating system: Windows 2000
PHP version: 4.0.4
PHP Bug Type: HTTP related
Bug description: Uploaded files do not save.
I am not sure where the fault lies here... (very possibly on me)
All of the variables in $HTTP_POST_FILES are correct, yet the file doesn't actually save.
I'm running PHP as Administrator, so I don't think it's a problem with permissions.
My upload_tmp_dir is set to "c:\windows\temp" and when I upload a file.. it does not
appear there. I've also tried setting upload_tmp_dir to "\",
"\windows\temp" and checked $HTTP_POST_FILES["song"]["tmp_name"] to be
sure... still no luck.
<form action="<? print($PHP_SELF); ?>" method="POST"
enctype="multipart/form-data">
<table width="100%" cellpadding="4" cellspacing="0"
border="0">
<tr>
<td>Title: </td>
<td><input type="text" name="title"></td>
</tr>
<tr>
<td>Artist: </td>
<td>
<select name="artist">
<? print(artists_formatted()); ?>
</select>
</td>
</tr>
...
<tr>
<td>Upload: </td>
<td><input type="file" name="song"></td>
</tr>
</table>
<input type="hidden" value="upload" name="do">
<input type="hidden" value="8192" name="MAX_FILE_SIZE">
<input type="submit" value="Upload">
--
Edit Bug report at: http://bugs.php.net/?id=10386&edit=1