note 40859 added to features.file-upload

From: Date: Wed, 17 Mar 2004 11:19:18 +0000
Subject: note 40859 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-66952@lists.php.net to get a copy of this message
MAX_FILE_SIZE: check the error of the upload to see if MAX_FILE_SIZE was exceeded, for example: $_FILES['userfile']['error'] has a value of 2 (UPLOAD_ERR_FORM_SIZE) when the file size exceeds MAX_FILE_SIZE. This error gets set automatically by PHP. Your script does not need to compare the sizes. The user *will* have to wait for the entire payload to be transferred to your server, however. This is a PHP-only feature. It has nothing to do with the client's browser. The RFC hints at a MAXLENGTH property for the <input type="file">, but this is not supported by browsers (I tested on IE 6 and Netscape 7 on Windows 2000) ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40859 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40859&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40859&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66952) next »