DEV Community

Cover image for Wordpress file upload capacity limitation. (How to increase maximum upload file size, wordpress)
Charisma Elohe
Charisma Elohe

Posted on

2 1

Wordpress file upload capacity limitation. (How to increase maximum upload file size, wordpress)

You sometimes build your website on a staging site to ensure you only push the final and most desired output to the live site.
However, trying to import the staging site file (wordpress) could prove to be an issue, like it was for me.

Wordpress by default, takes in files not more than 90MB. But the file you've exported from your staging site is probably upwards of 200 MB

Solution 1

_Edit on the .htaccess file
_


php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
Enter fullscreen mode Exit fullscreen mode

Solution 2

Edit on the wp-config file

Wp_config.php
@ini_set('upload_max_filesize','256M');
@ini_set('post_max_filesize','128M');
@ini_set('memory_limit','256M');
@ini_set('max_execution_time','300');
@ini_set('max_input_time','300');
Enter fullscreen mode Exit fullscreen mode

These are my go to solutions for this limitation, I will update the thread with more solutions.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

If you found this post useful, please drop a ❤️ or leave a kind comment!

Okay