WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#38018 closed defect (bug) (invalid)

WP post max size being used for Upload file size

Reported by: Paulds11 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6.1
Component: Upload Keywords:
Focuses: Cc:

Description

i guys just to let you know
Centos LAMP server >PHP config editor. I couldnt upload a plug-in but my PHP server settings had upload_max_filesize=90M for a 55m file should be ok right?
well, turns out post_max_size = WordPress “Maximum upload file size” which seems odd to me, i think the directive is incorrect.

So it seems WordPress is using post max size directive as its measure of Üpload file size instead of upload_max_filesize ?

Change History (2)

#1 @SergeyBiryukov
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi @Paulds11, welcome to Trac! Thanks for the ticket.

Both post_max_size and upload_max_filesize values affect uploads, as well as memory_limit. To upload large files, post_max_size must be larger than upload_max_filesize, and memory_limit should be larger than post_max_size. This is how PHP uploads work in general, not just in WordPress.

See these links for more info:
http://php.net/manual/en/ini.core.php#ini.post-max-size
http://stackoverflow.com/questions/7754133/php-post-max-size-overrides-upload-max-filesize

#2 @Paulds11
4 years ago

ok I didn't know that. Seems odd to me.

Note: See TracTickets for help on using tickets.