was successfully added to your cart.

Increase Max Upload File Size in WordPress

By September 10, 2015 Our Blog No Comments

Sometimes, you need to upload a large file to your site, and the default limit in WordPress isn’t enough. This isn’t directly a WordPress configuration, but is a limit set by your web hosting provider. You can see the current limit by going to Media → Add New in your WordPress dashboard.  In this article, we will show you how to increase the maximum file upload size in WordPress. Change the values to limits that best suit your needs.

1. Create or Edit an existing PHP.INI file
All you need to do is create a php.ini file and upload it into your /wp-admin folder. Then add the following code:

[code] memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
file_uploads = On
[/code]

This method is reported to work for many users.

2. Editing Your .htaccess file
Open or create the .htaccess file in the root folder and add the following code:

[code] php_value memory_limit 64M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_flag file_uploads 1
[/code]

If none of these options work, you can’t access the areas mentioned or you have troubles along the way, get in contact with hosting provider for a definitive answer that will work for your situation.

Leave a Reply

Click to Get Full Access to our entire collection for only $69! Get Access Today