note 31326 added to features.file-upload.common-pitfalls

From: Date: Thu, 17 Apr 2003 14:39:43 +0000
Subject: note 31326 added to features.file-upload.common-pitfalls
Groups: php.notes 
Request: Send a blank email to php-notes+get-46738@lists.php.net to get a copy of this message
It appears that when uploading a file which exceeds your local upload_max_filesize and post_max_size that the $_REQUEST array is entirely empty. So session handling (passing SID as a hidden in the form) fails. Here's an illustration: <html> <body> <form action="test.html" enctype="multipart/form-data" method="post"> <input type="hidden" name="SID" value="XXX" <input type="file" name="test"> <input type="submit"> </form> </html> <?php print_r( $_REQUEST ); ?> -- Upload file that is lower than your limit and you'll see the posted variables. If it is greater you'll see an empty array. -- http://www.php.net/manual/en/features.file-upload.common-pitfalls.php http://master.php.net/manage/user-notes.php?action=edit+31326 http://master.php.net/manage/user-notes.php?action=delete+31326 http://master.php.net/manage/user-notes.php?action=reject+31326

« previous php.notes (#46738) next »