#31793 [NEW]: $_FILES["photo"]["error"]

From: Date: Tue, 01 Feb 2005 14:16:30 +0000
Subject: #31793 [NEW]: $_FILES["photo"]["error"]
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73186@lists.php.net to get a copy of this message
From: skyfox at isp dot ee Operating system: debian PHP version: 4.3.10 PHP Bug Type: *Programming Data Structures Bug description: $_FILES["photo"]["error"] Description: ------------ I try verify for upload photos, but verify broken upload photo not work! this is my code: Reproduce code: --------------- if ($_FILES["photo"]["error"]==UPLOAD_ERR_NO_FILE){return($lns[49]);} if ($_FILES["photo"]["error"]==UPLOAD_ERR_PARTIAL){return($lns[50]);} if (($_FILES["photo"]["error"]==UPLOAD_ERR_INI_SIZE)||($_FILES["photo"]["error"]==UPLOAD_ERR_FORM_SIZE)){return($lns[51]);} if ($_FILES["photo"]["error"]<>UPLOAD_ERR_OK){return('Error:'.$_FILES["photo"]["error"]);} Expected result: ---------------- all error=UPLOAD_ERR_OK, but script can upload broken photos, more info from http://bugs.php.net/bug.php?id=31726 -- Edit bug report at http://bugs.php.net/?id=31793&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31793&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31793&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31793&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31793&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31793&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31793&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31793&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31793&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31793&r=support Expected behavior: http://bugs.php.net/fix.php?id=31793&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31793&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31793&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31793&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31793&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31793&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31793&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31793&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31793&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31793&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31793&r=mysqlcfg

« previous php.bugs (#73186) next »