note 21200 added to features.file-upload

From: Date: Thu, 02 May 2002 20:53:46 +0000
Subject: note 21200 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-30104@lists.php.net to get a copy of this message
To check to see if a file was actually uploaded, it is safer to check the value of ($_FILES["name"]["size"] > 0) than to check (!empty($_FILES["name"]["tmp_name"])) beacuse some versions of PHP will store 'none' in $_FILES["name"]["tmp_name"] while others will leave it empty in the case od a missing file. -- http://www.php.net/manual/en/features.file-upload.php http://master.php.net/manage/user-notes.php?action=edit+21200 http://master.php.net/manage/user-notes.php?action=delete+21200 http://master.php.net/manage/user-notes.php?action=reject+21200

« previous php.notes (#30104) next »