|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-01 15:44 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 11:00:01 2025 UTC |
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