php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40605 Unable to gracefully handle when max_post_size exceeded with file uploads
Submitted: 2007-02-23 14:02 UTC Modified: 2016-12-30 23:59 UTC
Votes:11
Avg. Score:4.6 ± 0.6
Reproduced:11 of 11 (100.0%)
Same Version:5 (45.5%)
Same OS:7 (63.6%)
From: sam dot bryan at montal dot com Assigned:
Status: Open Package: *Web Server problem
PHP Version: 5.2.1 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sam dot bryan at montal dot com
New email:
PHP Version: OS:

 

 [2007-02-23 14:02 UTC] sam dot bryan at montal dot com
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:59 UTC] cmb@php.net
-Package: Feature/Change Request +Package: *Web Server problem
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC