File Upload Issues

From: Date: Sun, 21 Sep 2003 03:10:29 +0000
Subject: File Upload Issues
Groups: php.general 
Request: Send a blank email to php-general+get-163325@lists.php.net to get a copy of this message
I was hoping to get a bit of help with a strange file upload issue that I am having. Below is a simple form that I am using as an example. The output from the $_FILES array follows that. The thing that I am unable to resolve is the fact that the file upload returns the name of the file the user is uploading, but will not give me the tmp_name or the type. I am having this problem with this form and another as part of an application I am working on, however, I have another form with 2 file upload fields that works normally. HTML FORM: <form enctype="multipart/form-data" action="test.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="2048"> Send this file: <input name="userfile" type="file" size="25"> <input type="submit" value="Send File" name="submit"> </form> PHP CODE & OUTPUT: code: echo "Temp Name: " . $_FILES['userfile']['tmp_name'] . "<br>"; echo "File Name: " . $_FILES['userfile']['name'] . "<br>"; echo "File Type: " . $_FILES['userfile']['type'] . "<br>"; output: Temp Name: File Name: news.pdf File Type: Shad Kaske

Attachment: [text/enriched]
« previous php.general (#163325) next »