Search
Close this search box.
Search
Close this search box.

How to Increase the Maximum File Upload Size in WordPress

htaccess method

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

php_value post_max_size 64M

If you get an internal server error 500, use one of the methods below.

Use cpanel

If you have cpanel available:

  1. Open cpanel. To do so, open your browser and go to www.mywebsite.com/cpanel.
  2. Go to PHP Configuration.
  3. Press edit custom php.ini
  4. SetĀ upload_max_filesize to 64M
  5. Press Apply changes

Upload file into Media Library using FTP

If everything else fails, you can use the Add From Server plugin. “Add From Server” is a quick plugin which allows you to import media & files into the WordPress uploads manager from the Webservers file.

Contact your hosting provider

If ftp is not available, then contact your hosting provider and ask them to change these 2 lines in php.ini:

upload_max_filesize = 64M
post_max_size = 64M

Learning Resources

How to Increase the Maximum File Upload Size in WordPress