wp_max_upload_size() is not taking memory limit into account
|Reported by:||hakre||Owned by:|
wp_max_upload_size() is not taking a memory limit into account while checking for the maximum upload size.
according to the official php documentation the memory limit is limiting file uploads as well (and post form operations).
post_max_size - integer
Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.
Change History (14)
- Keywords has-patch added
- Milestone changed from Unassigned to Future Release