Make WordPress Core

Opened 13 months ago

Last modified 8 weeks ago

#23895 new defect (bug)

Max upload size 0 when post_max_size = 0

Reported by: moscar09 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.5.1
Component: Upload Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

As a convention, post_max_size can be set to 0 to disable any limitation on max post size.

Quote from php.ini:

; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size

WordPress does not take this into account in wp-admin/includes/template.php

Change History (5)

comment:1 SergeyBiryukov13 months ago

  • Description modified (diff)

comment:2 SergeyBiryukov3 months ago

#26918 was marked as a duplicate.

comment:3 SergeyBiryukov3 months ago

It's worth noting that memory_limit can also affect file uploading:

Last edited 3 months ago by SergeyBiryukov (previous) (diff)

comment:4 ircbot8 weeks ago

This ticket was mentioned in IRC in #wordpress-dev by SergeyBiryukov. View the logs.

comment:5 SergeyBiryukov8 weeks ago

#24558 was marked as a duplicate.

Note: See TracTickets for help on using tickets.