How to Set A Maximum File Upload Size Advanced Advanced tutorials require advanced knowledge of web design concepts and languages such as HTML, CSS, JavaScript.
Setting a maximum file upload size in Wordpress requires the user to have access to the server FTP where he is hosting his website.
Keep in mind
If you do not have access to your website FTP, contact your hosting provider to give you access or simply inform him to make the modifications for you.
- Modifying .htaccess files
- Use the ini_set() PHP function
Modify .htaccess files
- Go to your site's root directory
- Open the .htaccess file there
- Edit the file and paste the code below
- Make sure you upload the .htaccess file back in the site's host root directory once that is done.
php_value upload_max_filesize 128M
php_value post_max_size 128M
Use the ini_set() PHP Function
- Go to your site's root directory
- Open the wp-config.php file
- Edit the file and paste the code below
- Make sure you upload the file back in the site's host root directory once that is done.
@ini_set( 'upload_max_size' , '128M' );
@ini_set( 'post_max_size', '128M');
Keep in mind
The recommended file size for this theme is 128 MB.
Warning
Modifying a server setting might have unforseen consequences. If you are not sure of what you are doing or you are not proficient with changing files on a server, please notify your hosting provider and they will make the modifications for you.