Login
Register
Home
Categories
Blogging
WordPress
Affiliate Marketing
Health & Fitness
SEO
Keyword Research
Google Adsense
Travel
Free SEO Tools
New
Blog Directory
Community
Explore
Free Keyword Search
Reward Program
Earn ₹
Guest Posting List
Marketplace
Resources
Beginners Guide
Glossary A-Z
Video Tutorials
Guide & Reviews
Akshat Gupta
Last updated on September 07th, 2021
How To Increase The Maximum Upload File Size Limit Of WordPress Site
Like (0)
Comments (1)
Leave a Reply
To leave a comment, please
Login
or
Register
Comments (1)
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.
Like (1)
Reply
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.