Quantcast
Viewing latest article 7
Browse Latest Browse All 10

How to Increase the Maximum File Upload Size in WordPress

Image may be NSFW.
Clik here to view.
Increase maximum size in WP 1
Not all sites are built the same and not all WordPress users have the same amount of space to upload files. This is why it is vital to shop around when it comes to selecting a web host, as your selection will determine the upload limit for your files put on the Media Uploader page. In addition, some web hosts will offer different price packages that will give you different upload limits. If you are not uploading anything more than pictures, you will likely find that a 2-megabyte (2 MB) maximum file upload size is fine. However, if you are have the desire to put audio or video on your site, you will need to know how to increase that limit.

Determining the Limit

Image may be NSFW.
Clik here to view.
Increase maximum size in WP 2

When you go to upload media to your WordPress site, you will be told what the maximum upload size is. Go to add new media and you will have a section where you can drop files or select files with a button. Under that section, you will find the information and it will range depending on the package you received. Therefore, you may have to talk with your web host provider to make sure you can increase the limit yourself.

Change Code with Theme Functions

In some cases, increasing the upload limit is as easy as changing the code in the theme functions’ file. When you are in the file, look for the “@ini_set(‘upload_max_size’) code and set it to ‘64M’. This will allow you to have the maximum upload file size as 64MB, which is large enough for most audio or visual files.

Editing the PHP.INI File

In other cases, you will need to actually edit the PHP.INI file. If you do not have this file in your root folder in your FTP file, you will need to create it. Using a text editor, type this code:

Upload_max_filesize = 20M

Post_max_size = 20M

You may find it beneficial to play with the numbers a little to determine what the maximum file size is for your web host provider. There are many times when they will tell you that you can only have a file size of so big, but secretly allow you to have a little more.

Modify the .htaccess File

Another place people have found success in increasing the maximum upload file limit is by modifying their .htaccess file. Go into your root directory and open the file. You are looking for the code that has the “php_valueupload_max_filesize” string so you can change the limit. Again, play with the limit a little to determine what your actual maximum is.

Finally, a few plugins will also assist in increasing the limits. One of them is “Increase Upload Max Filesize” and it is a zipped file. After you download the file, leave it zipped and upload it to your plugins folder in your FTP program. You will then need to activate it on the admin side of your WordPress site and then edit the limit in your settings. If these methods do not work, make sure you contact your web host provider to see what your options are.


Viewing latest article 7
Browse Latest Browse All 10

Trending Articles