Skip to content

Lifting the File Size Upload Limit in WordPress MultiSite

speed-faster-bunny-and-car-canstockphoto8539964

 

A Google search on “increase file size upload in wordpress” provides a number of resources with directions on how to do this.  But, all of them assume you are not running  a multi-site configuration.  So, here are the complete steps for WordPress Multisite:

Do one of the following (or all of the following)  to increase the file size upload limit to 64 MB.

1. If you are running on a dedicated server modify your PHP.ini file to add or edit the following entries:

  • upload_max_filesize = 64M
  • post_max_size = 64M
  • max_execution_time = 300

If you are not running on a dedicated server then create a php.ini file with the above entries and place it in your WordPress root folder.

2. Add the following to your theme’s function’s file

  • @ini_set( ‘upload_max_size’ , ’64M’ );
  • @ini_set( ‘post_max_size’, ’64M’);
  • @ini_set( ‘max_execution_time’, ‘300’ );

The step #2 is not necessary in most cases but if you find nothing else works then try it.

There is a .HTaccess method but I am not sure how well that works so leaving it out for now.

3. This is the critical MultiSite step that most instructions leave out

  1. Log into your Admin dashboard.
  2. At the top, hover over My Sites and then click Network Admin.
  3. At the left, hover over Settings and then click Network Settings.
  4. Scroll to the bottom of the page and change the Max upload file size to whatever you would like in KB. )In our example of 64 MB it would be set to 64000)
  5. Click Save Changes.

Hopefully, this all works for you. If you are on a shared hosting provider then they may have locked down your options so tightly that none of these will work. But for dedicated servers or the higher-end hosts, this should all work.

Leave a Comment

You must be logged in to post a comment.