July 07th, 2024

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

Like (0) Comments (1)

1 Comments Add Your Comment

Akshat Gupta
3 years ago Selected
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.
Like (1) Reply

Post a Comment

To leave a comment, please Login or Register