note 60517 added to features.file-upload

From: Date: Tue, 10 Jan 2006 01:08:59 +0000
Subject: note 60517 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-101472@lists.php.net to get a copy of this message
Regarding empty $_FILES and $_POST arrays when uploading files larger than post_max_size: Tucked away in http://us3.php.net/manual/en/ini.core.php#ini.post-max-size is this nugget: "If the size of post data is greater than post_max_size, the $_POST and $_FILES superglobals are empty. This can be tracked in various ways, e.g. by passing the $_GET variable to the script processing the data, i.e. <form action="edit.php?processed=1">, and then checking if $_GET['processed'] is set." This may seem like a bug. You'd expect something like UPLOAD_ERR_FORM_SIZE to be set. But you just two empty superglobals. I've seen it submitted to bugs.php.net twice and it's been marked as bogus both times. ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60517 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60517&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60517&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60517&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60517&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60517&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60517&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60517&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60517&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101472) next »