Re: file upload question

From: Date: Fri, 24 Jan 2003 17:15:20 +0000
Subject: Re: file upload question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133014@lists.php.net to get a copy of this message
This may just be me but I've never gotten upload to work where the form is posting to the same page, try moving it to two pages. On Fri, 2003-01-24 at 12:05, Andrew Rench wrote: 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Adam Voigt (adam@cryptocomm.com) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#133014) next »