Home / Admin / Increase the max file size limit in WordPress
Duplicate Snippet

Embed Snippet on Your Site

Increase the max file size limit in WordPress

Using a small snippet, we're going to increase the upload size, post size, and max execution time for the site.

100+
Code Preview
php
<?php
/* 
Increase WordPress upload size, post size, and max execution time 
Original doc link: https://wpforms.com/how-to-change-max-file-upload-size-in-wordpress/
For support, please visit: https://www.facebook.com/groups/wpformsvip
*/
@ini_set( 'upload_max_size' , '256M' );
@ini_set( 'post_max_size', '256M');
@ini_set( 'max_execution_time', '300' );

Comments

Add a Comment