How To Increase The Maximum Upload File Size Limit Of WordPress Site

Leave a Reply

To leave a comment, please Login or Register

Comments (1)

Akshat Gupta Selected

Akshat Gupta

1 year ago
1. Theme Functions File

To increase Maximum File Upload Size in WordPress, add the below code to the theme function file. This will increase your upload size.

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

2. Create or edit existing php.ini file

To edit the php.ini file, locate it in the root folder of your website. If it is not present in your root folder, create a new php.ini file and upload it to the root folder. After that add the code to your php.ini.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

If 64mb doesn't work then use 10mb or other values.