Re: File Upload

From: Date: Thu, 30 May 2002 02:39:45 +0000
Subject: Re: File Upload
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-99835@lists.php.net to get a copy of this message
A guess, but is the tmp dir set in php.ini?? Edward Marczak wrote:
OK - I've read the manual, looked at sample code....and I sadly am missing something. I'm doing (basically) this in my form: <form action="someform.php" ENCTYPE="multipart/form-data" method="post" name="replysub" id="replysub"> <input type="hidden" name="MAX_FILE_SIZE" value="100000"> <input type="file" name="subfile" id="subfile" size="50"> On the page it's submitted to, just to check the data, I did this: $lineNo = 1; echo "Dumping file info...<br>--------------------------<br>"; reset($_FILES); while (list ($key, $val) = each($_FILES['subfile'])) {
    echo "$lineNo $key => $val<br>";
    $lineNo++;
} ....and I get this: Dumping file info... -------------------------- 1 name => somefile.exe 2 type => application/x-msdownload 3 tmp_name => none 4 size => 0 Where do I start looking to figure out why tmp_name and size don't get set? Why doesn't this file get uploaded? Thanks!
-- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/

« previous php.general (#99835) next »