note 92893 added to reserved.variables.files

From: Date: Thu, 13 Aug 2009 12:40:55 +0000
Subject: note 92893 added to reserved.variables.files
Groups: php.notes 
Request: Send a blank email to php-notes+get-159437@lists.php.net to get a copy of this message
To determine whether upload was successful you should check for error being UPLOAD_ERR_OK instead of checking the file size. When nothing is chosen to be uploaded, the key in $_FILES will still be there, but it should have error equal UPLOAD_ERR_NO_FILE. ---- Server IP: 82.177.164.100 Probable Submitter: 82.210.168.141 ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.files.php Edit -- https://master.php.net/note/edit/92893 Del: integrated -- https://master.php.net/note/delete/92893/integrated Del: useless -- https://master.php.net/note/delete/92893/useless Del: bad code -- https://master.php.net/note/delete/92893/bad+code Del: spam -- https://master.php.net/note/delete/92893/spam Del: non-english -- https://master.php.net/note/delete/92893/non-english Del: in docs -- https://master.php.net/note/delete/92893/in+docs Del: other reasons-- https://master.php.net/note/delete/92893 Reject -- https://master.php.net/note/reject/92893 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159437) next »