The WP Max Upload Size on your site is the setting which controls the maximum size of the files you can upload to your WordPress site.
This can affect certain features in OptimizePress including any file upload settings such as uploading files for downloads or videos inside the editor if you’re using a self-hosted video. It can also affect your site when you update your site if your site limits are very low.
To fix this, you can usually change the setting inside your WordPress configuration files. Follow the steps below
NOTE: If you’re not confident to do any of these – we recommend contacting your hosting company who should be happy to help with updating these settings.
1. Update .htaccess file
If your web server supports htaccess – you can set the setting inside your .htaccess file.
To access this file, connect to your server via FTP or navigate to the folder where WordPress is installed inside your file manager inside control panel and open the .htaccess file
Add the following lines:
php_value upload_max_filesize 64M php_value post_max_size 128M php_value memory_limit 256M php_value max_execution_time 300 php_value max_input_time 300
2. Edit Your Functions.php File
You can increase the size limits by adding the following lines of code in the
functions.php file of your theme.
However, remember if you change the theme then max upload size will return to its default values until you edit the functions.php file of the new theme.
@ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); @ini_set( 'max_execution_time', '300' );