How to increase the WordPress Multisite Network limit for Maximum Filesize Upload?
Access your WordPress site's root directory using an FTP client or file manager.
Locate and open the
wp-config.php
file in a text editor.Add the following line of code before the line that says "That's all, stop editing! Happy blogging."
define('MULTISITE', true);
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST']);
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
define('UPLOADS', 'wp-content/blogs.dir/' . get_current_blog_id() . '/files/');
define('BLOGUPLOADDIR', WP_CONTENT_DIR . '/blogs.dir/' . get_current_blog_id() . '/files/');
Save the changes to the
wp-config.php
file.Log in to your WordPress admin dashboard.
Navigate to "Network Admin" > "Settings" > "Network Settings."
Look for the "Max upload file size" option and set the desired maximum file size.
Save the changes.
Open your site's
.htaccess
file in a text editor.Add the following lines of code after the existing WordPress rules:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 300M
php_value max_execution_time 300
php_value max_input_time 300
Save the changes to the
.htaccess
file.Finally, check if the changes take effect by attempting to upload a file that exceeds the previous file size limit.