wp_max_upload_size() is not taking memory limit into account
|Reported by:||hakre||Owned by:||dd32|
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 (20)
- Keywords dev-feedback added; needs-refresh removed
- Milestone changed from Future Release to 4.4