There are a few ways to increase the media upload size in WordPress:
- By editing the php.ini file: If you have access to the server’s php.ini file, you can increase the upload size by editing the following values:
upload_max_filesize = 64M
post_max_size = 64M
2. These values should be increased to the desired size, and then the server should be restarted for the changes to take effect.
3. By adding code to the .htaccess file: If you don’t have access to the server’s php.ini file, you can try adding the following code to the .htaccess file located in the root of your website:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 256M
4. By using a plugin: There are several plugins available that allow you to increase the media upload size in WordPress, such as Increase Upload Max Filesize. These plugins are easy to use and can be used to increase the upload size without having to access the server’s php.ini or .htaccess file.
It’s important to note that increasing the media upload size may affect the performance of your website and your server’s resources, so it’s important to set it to a reasonable value.
Also, it’s recommended to check with your hosting provider before making any modifications to your server settings to make sure you are not violating any terms of service.