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 ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to