Increase Media Upload Size
-
Is there a way to increase media upload size beyond just a maximum of 2MB? Cause I do have animated GIFs that exceed 2MB but can't upload as a media. Using FTP is a bypass method but I can't see it in the media library. Any help would be great! Thanks in advance!
-
Hi @ryanlen
Some people have tried using the htaccess method where by modifying the .htaccess file in the root directory, you can increase the maximum upload size in WordPress. Open or create the .htaccess file in the root folder and add the following code:
php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300 php_value max_input_time 300
Let me know if that worked for you!
Best!
Marius
-
@mariusjopen said in Increase Media Upload Size:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300Hey Marius,
Is this the only method? Tried it but it crashed my site. Not sure what I did wrong. Haha. :/
-
Hi @ryanlen
You can try to add this to your config.php file:
define('WP_MEMORY_LIMIT', '64M');
Let me know if that works!
Best :-)
Marius
-
@mariusjopen Hey Marius,
sorry for my delayed response. Tried to include the line in my wp-config.php file but it didn't work.Was wondering if there are any other ways? Apologies for this troublesome request.
-
@mariusjopen and others
Hi, have somebody found a way to increase the upload limit yet? I tried several way I found, nothing worked out for me (functions.php, config.php, .htaccess, php.ini).
Thanks for helping :) -
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it