file upload question
| From: | Andrew Rench | Date: | Fri, 24 Jan 2003 17:05:15 +0000 |
| Subject: | file upload question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133013@lists.php.net to get a copy of this message | ||
the following code:
<html>
<body>
<form enctype="multipart/form-data" action="<?= $PHP_SELF ?>" method
="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
<?php
echo $_FILES['userfile']['tmp_name'];
?>
</body>
</html>
produces the following after upload:
/var/tmp/phplSTEVp (or php[something-or-other])
When I view that directory, it is empty.
I put togther this simple test script because I was having problems with
similar script that uses the move_uploaded_file() function.
I realize that there are many pitfalls related to filesize and uploading-
I'm testing using very small files (1-4k). I also made sure that file
uploads was enabled in the php.ini file.
Any ideas?
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com