#38018 closed defect (bug) (invalid)
WP post max size being used for Upload file size
Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
Hi @Paulds11, welcome to Trac! Thanks for the ticket.
Both
post_max_size
andupload_max_filesize
values affect uploads, as well asmemory_limit
. To upload large files,post_max_size
must be larger thanupload_max_filesize
, andmemory_limit
should be larger thanpost_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