Hi,

Sunday, September 21, 2003, 1:10:29 PM, you wrote:
SK> I was hoping to get a bit of help with a strange file upload issue that 
SK> I am having. Below is a simple form that I am using as an example. The 
SK> output from the $_FILES array follows that. The thing that I am unable 
SK> to resolve is the fact that the file upload returns the name of the 
SK> file the user is uploading, but will not give me the tmp_name or the 
SK> type. I am having this problem with this form and another as part of an 
SK> application I am working on, however, I have another form with 2 file 
SK> upload fields that works normally.

SK> HTML FORM:
SK> <form enctype="multipart/form-data" action="test.php" method="POST">
SK> <input type="hidden" name="MAX_FILE_SIZE" value="2048">
SK> Send this file: <input name="userfile" type="file" size="25">
SK> <input type="submit" value="Send File" name="submit">
SK> </form>

SK> PHP CODE & OUTPUT:
SK> code:
SK>         echo "Temp Name: " . $_FILES['userfile']['tmp_name'] . "<br>";
SK>         echo "File Name: " . $_FILES['userfile']['name'] . "<br>";
SK>         echo "File Type: " . $_FILES['userfile']['type'] . "<br>";

SK> output:
SK> Temp Name:
SK> File Name: news.pdf
SK> File Type:


SK> Shad Kaske

what do you get in $_FILES['userfile']['error']
It might give you a clue

-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to