Sometimes, you need to upload a large file to your site, and the default limit in WordPress isn’t enough. This isn’t directly a WordPress configuration, but is a limit set by your web hosting provider. You can see the current limit by going to Media → Add New in your WordPress dashboard. In this article, we will show you how to increase the maximum file upload size in WordPress. Change the values to limits that best suit your needs.
1. Create or Edit an existing PHP.INI file
All you need to do is create a php.ini file and upload it into your /wp-admin folder. Then add the following code:
upload_max_filesize = 64M
post_max_size = 64M
file_uploads = On
This method is reported to work for many users.
2. Editing Your .htaccess file
Open or create the .htaccess file in the root folder and add the following code:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_flag file_uploads 1
If none of these options work, you can’t access the areas mentioned or you have troubles along the way, get in contact with hosting provider for a definitive answer that will work for your situation.