File upload problems beginning in 4.3.0

From: Date: Fri, 24 Jan 2003 16:40:36 +0000
Subject: File upload problems beginning in 4.3.0
Groups: php.general 
Request: Send a blank email to php-general+get-133011@lists.php.net to get a copy of this message
I am running the following code in php-4.3.0: <? $portrait = $_FILES["portrait"]; print "<hr>_FILES[portrait]: <pre>\n"; print_r($portrait); print "</pre>"; $portrait = $_GLOBALS["portrait"]; print "<hr>_FILES[portrait]: <pre>\n"; print_r($portrait); print $_FILES["portrait"]["error"]; print "</pre>"; ?> <form method="post" action="t.cgi" ENCTYPE="multipart/form-data"> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000"> <input type=file name=portrait> <input type="submit"> </form> The file does not appear to be uploaded. However, with php-4.2.3, everything works fine. I have confirmed that both file_uploads and register_globals are on. This problem occurs in both the apache module and the standalone version. Any help would be appreciated. Thanks! -- Felicia ~~~~~~~~~~~~~~ fn@panix.com Panix Staff

« previous php.general (#133011) next »