From:             sam dot bryan at montal dot com
Operating system: All
PHP version:      5.2.1
PHP Bug Type:     Feature/Change Request
Bug description:  Unable to gracefully handle when max_post_size exceeded with 
file uploads

Description:
------------
There is, as far as I can discern, no mechanism for detecting exceeded
max_post_size when dealing with file uploads.

Setting max_post_size >= upload_max_filesize is a good safety for single
files, but when uploading multiple files is of no use, as individual files
can be within upload_max_filesize but can cumulatively exceed
max_post_size.

The php://input wrapper and $HTTP_RAW_POST_DATA aren't populated when data
is posted with enctype multipart/form-data, otherwise that'd be a simple
way of checking the POST data size.

My request is for a method of detecting when max_post_size is exceeded, so
it can be handled gracefully within a script.  Having php://input filled
when data is of multipart/form-data would do nicely.


-- 
Edit bug report at http://bugs.php.net/?id=40605&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40605&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40605&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40605&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40605&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40605&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40605&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40605&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40605&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40605&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40605&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40605&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40605&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40605&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40605&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40605&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40605&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40605&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40605&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40605&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40605&r=mysqlcfg

Reply via email to