fbpx

Increase the upload size in WordPress

Are you looking for ways to increase the size limit for uploaded files in WordPress? If so, you’re in luck! In this post, we’ll show you how to increase the upload size limit for WordPress easily. Plus, we’ll give you a few tips on how to stay safe when uploading files. Keep reading to learn more.

First, let’s take a look at the default file upload size for WordPress. By default, WordPress has a maximum file upload size of 2 MB. This means that you can’t upload files larger than 2 MB in size. If you try to upload a file that is too large, you’ll see an error message like this: “File is too big. Maximum upload size is 2 MB.”

Now, let’s say you have a file that is 4 MB in size. You can’t upload it to WordPress because the maximum file upload size is 2 MB. So, what do you do?

One option is to increase the maximum file upload size for WordPress. To do this, you need to edit your WordPress configuration file. This file is called wp-config.php and is located in your WordPress site’s root directory.

Open wp-config.php in a text editor and look for this line:

define(‘WP_MEMORY_LIMIT’, ‘256M’);

If you don’t see this line, add it to the bottom of the file. Save your changes and upload the file to your WordPress site.

Next, you need to edit your .htaccess file. This file is also located in the root directory of your WordPress site. Add the following line to your .htaccess file:

php_value upload_max_filesize 64M

php_value post_max_size 64M

Save your changes and upload the file to your WordPress site.

Now, you should be able to upload files that are up to 64 MB in size. If you want to increase the maximum file upload size even further, you can follow the same steps and change the values from 64M to something higher. Just keep in mind that increasing the file upload size limit can cause problems if your server doesn’t have enough resources to handle large files. So, make sure you know what you’re doing before making any changes.

If you’re still having trouble uploading large files, check with your web host to see if they can increase your file upload size limit.

And that’s it! You now know how to increase the maximum file upload size for WordPress. For assistance, you can contact Hosted WP or look at our Managed WordPress Hosting services that come by default with 512MB of upload.

If you liked this article, then please find us on Twitter and Facebook.