WordPress – Increasing File Upload Size

Increasing File Upload Size in WordPress to 32 MB – 8/8/17

Increase the file size in GoDaddy cPanel.

Go to cPanel.
Go to Software.
Go to “Select PHP Version”.
Click on “Switch To PHP Options”.
Change “post_max_size” to 32M (Up to 1 GB)
Change “upload_max_filesize” to 32M (Up to 1 GB)

Both areas have to be changed to allow the full file size upload. Post_max_size will limit the upload file size.

Old Information – Increasing File Upload Size in WordPress to 1GB

Solution 1: using .htaccess way

You can get .htaccess file from root folder of your website. Mostly it’s hidden. So using FTP makes sense. Or you have to open your file manager with hidden files.
If there is no .htaccess file, create and upload/paste in root (before creating .htaccess file, make sure there is no .htaccess file). Paste the following code,

php_value upload_max_filesize 1024M
php_value post_max_size 1024M
php_value max_execution_time 1000
php_value max_input_time 1000

Solution 2: Theme’s Functions.php File

This is easy way. Open your theme’s functions.php file. You can find function.php file by following way,
wp-content –> themes –> select your current Theme -> functions.php file
And, just add following code at there,

@ini_set( ‘upload_max_size’ , ’1024M’ );
@ini_set( ‘post_max_size’, ’1024M’);
@ini_set( ‘max_execution_time’, ’1000′ );

****Solution 3: PHP.INI file method****
This is the one that worked on the GoDaddy hosting system

You can find your php.ini file in root folder. If you can’t find it there, just create a php.ini file and paste/upload in your root folder with following code. If already file is there, just add this code:

file_uploads = On
post_max_size = 1024M
upload_max_filesize = 1024M

If the php.ini file doesn’t work in the root directory, try placing it in the wp-admin directory.

In a multi-site system, go to “Network Admin”, “Settings”, “Network Settings” and scroll to bottom. Change the value in the “Max upload file size” field. (1024 x number of megabytes. 500 x 1024 = 512500. 1000 x 1024 = 1024000 or 1GB)

Leave a Reply