Opened 13 years ago
Last modified 6 years ago
#18474 reopened defect (bug)
Misleading error message when theme ZIP exceeds post_max_size
Reported by: | ocean90 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 3.2 |
Component: | Upload | Keywords: | has-patch dev-feedback |
Focuses: | administration | Cc: |
Description
post_max_size is 32MB, now try to uploading a 40MB big ZIP.
You will get the Are you sure you want to do this? Please try again. message. But try again will not help.
Notice:
Warning: POST Content-Length of 47774864 bytes exceeds the limit of 33554432 bytes in Unknown on line 0
Attachments (1)
Change History (7)
#1
@
13 years ago
- Cc kpayne@… added
- Component changed from Themes to Upload
- Keywords has-patch dev-feedback added; needs-patch removed
This happens when php stops listening to the request after post_max_size is reached. When that happens, the mime request cannot be properly decoded, so no post variables come through (including the nonce).
18474.diff will detect the problem when a nonce fails and will give the proper error message, but there's nothing we can do about it from within WP.
#2
follow-up:
↓ 3
@
11 years ago
- Keywords has-patch dev-feedback removed
- Resolution set to invalid
- Status changed from new to closed
Tested in 3.6 and get an appropriate error: test.zip exceeds the maximum upload size for this site. Maximum upload file size: 32MB.
Patch to detect truncated POST requests