The maximum file upload size for media files in WordPress is determined by two factors: the maximum upload size set by WordPress and the maximum upload size set by your web host.
To increase the maximum upload size for media files in WordPress, you can follow these steps:
- Increase the maximum upload size in WordPress:
- Login to your WordPress dashboard
- Go to “Media” -> “Add New”
- You will see the maximum file upload size limit on the screen
- If you see that the maximum file size is less than what you want, then you can increase it by adding the following line to your wp-config.php file:
- This will increase the maximum upload size to 256MB. You can change the value to any amount that you need.
- If this doesn’t work, you can try the following method.
- Increase the maximum upload size in your web host:
- Locate your .htaccess file in the root directory of your WordPress installation.
- Add the following lines at the end of the file:
php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value memory_limit 256M
php_value max_execution_time 300
- This will increase the maximum upload size to 256MB, the maximum post size, memory limit, and execution time. You can change the values to any amount that you need.
- Save the file and upload it to your server.
If you don’t have access to your .htaccess file, you can try contacting your web host and asking them to increase the maximum upload size for you.
It’s important to note that increasing the maximum upload size can have an impact on your server’s performance, so it’s recommended to use this only when necessary and to keep the size as small as possible for better site performance.