#38018 closed defect (bug) (invalid)
WP post max size being used for Upload file size
| Reported by: | Paulds11 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Upload | Version: | 4.6.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @Paulds11, welcome to Trac! Thanks for the ticket.
Both
post_max_sizeandupload_max_filesizevalues affect uploads, as well asmemory_limit. To upload large files,post_max_sizemust be larger thanupload_max_filesize, andmemory_limitshould 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