#21908 [NEW]: File upload problems beginning in 4.3.0

From: Date: Mon, 27 Jan 2003 18:38:44 +0000
Subject: #21908 [NEW]: File upload problems beginning in 4.3.0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31356@lists.php.net to get a copy of this message
From: fn@panix.com Operating system: NetBSD-1.5.2 PHP version: 4.3.0 PHP Bug Type: *General Issues Bug description: File upload problems beginning in 4.3.0 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. is_uploaded_file() also reports failure with php-4.3.0. -- Edit bug report at http://bugs.php.net/?id=21908&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21908&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21908&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21908&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21908&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21908&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21908&r=support Expected behavior: http://bugs.php.net/fix.php?id=21908&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21908&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21908&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21908&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21908&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21908&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21908&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21908&r=gnused

« previous php.bugs (#31356) next »