Large media uploads have started giving error
-
I had my WP installation set up to allow media uploads of upto 48M. This worked fine, but since about mid March I’ve been unable to upload anything larger than 2M.
Anything larger than 2M now gives the error – The uploaded file exceeds the upload_max_filesize directive in php.ini
I had put a php.ini in the top level directory with the following:
max_input_time = 900 upload_max_filesize = "48M" post_max_size = "48M" memory_limit = "500M"
phpinfo() shows the values are picked up correctly.
I’ve also put the following in the functions.php of my child theme:
add_filter( 'upload_size_limit', 'hwmc_change_upload_size'); function hwmc_change_upload_size() { return 48 * 1024 * 1024; }
I’ve tried deactivating all plug-ins, but the problem persists.
Any ideas?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Large media uploads have started giving error’ is closed to new replies.