HTTP Upload Problem
| From: | Yev | Date: | Mon, 02 Apr 2001 21:46:59 +0000 |
| Subject: | HTTP Upload Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46687@lists.php.net to get a copy of this message | ||
OK, here's my problem
I wrote a simple upload script:
<?
print_r($HTTP_POST_FILES);
?>
<FORM ENCTYPE="multipart/form-data" ACTION="" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE"
value="100000000000000000">
File: <INPUT TYPE=file name=filename size=30>
<INPUT TYPE="submit" VALUE="submit">
</FORM>
I purposely specified MAX_FILE_SIZE to be big since I heard it causes
problems if it's too small: ie files get rejected no matter what.
If I input any file, the $HTTP_POST_FILES shows the proper stuff, but
the file doesn't exist in "/tmp" (which is set in php.ini), if I leave
the file field empty, then a /tmp/phpXXXXXX file is created with a 0
byte size.
What can be the problem? It's not permissions..
Yev
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text