Click to See Complete Forum and Search --> : no tmp_name


kanuski
09-30-2003, 07:42 PM
Greetings! I have a simple html file upload form. On the action page I try to get the name and tmp_name for the uploaded file. The name shows up but not the tmp_name. Here is my latest try. I tried using different codes to get the tmp_name.

$userfile=$_FILES['userfile']['name'];
$tempfile=$_FILES['userfile']['tmp_name'];
$temp2=$HTTP_POST_FILES['userfile']['tmp_name'];
echo "Userfile: $userfile<br>Tempfile: $tempfile<br>temp2: $temp2<br><hr>";

I can't copy this file if I can't get the tmp name. Any ideas?

kanuski
09-30-2003, 08:16 PM
Solved! I spent hours trying to solve this problem and found the error with a few minutes of making this post. I had the file size set too low.