To leave a comment, please Login or Register

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.
13 days ago   1