How to Increase the Maximum File Upload Size in WordPress
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.
If you have cpanel available:
- Open cpanel. To do so, open your browser and go to www.mywebsite.com/cpanel.
- Go to PHP Configuration.
- Press edit custom php.ini
- Set upload_max_filesize to 64M
- 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