0 %
Khalid Bin Ahsan
Full Stack Web Developer
image
  • Email
  • developer@khalidbinahsan.com
  • Whatsapp/Call
  • +8801754879302
Skills
PHP
Laravel
Wordpress
html
CSS
Js
Jquery
Bootstrap
Sass
  • Version Control (Git)
  • Photoshop
  • Adobe Illustrator
  • Filmora

Maximize Your Site’s Potential: How to Increase WordPress Maximum Upload File Size

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp
Share on pinterest
Share on telegram
Share on tumblr
Share on skype
Share on reddit
Share on pocket
Share on print

Are you struggling to upload large files to your WordPress site? Fret not! WordPress has a default maximum upload file size limit, but it can be increased to accommodate larger files. In this blog post, we’ll guide you through the process of increasing the maximum upload file size on your WordPress site.

Why Increase the Maximum Upload File Size?

By default, WordPress limits the maximum upload file size to prevent server overload and ensure optimal site performance. However, this limit can be restrictive for users who need to upload larger files such as images, videos, or audio files. Increasing the maximum upload file size can make your website more versatile and dynamic.

How to Increase WordPress Maximum Upload File Size?

Here are the steps to increase your WordPress site’s maximum upload file size:

Way #1: Edit .htaccess file

Go to your public_html root folder. You will get the .htaccess file here. Add some code to your .htaccess file

Add the following code to your .htaccess file

				
					php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value max_execution_time 300
php_value max_input_time 300
				
			

Way #2: Configuring php.ini File

Go to your public_html root folder. Create a php.ini file there and add the following code.

				
					upload_max_filesize = 128M post_max_size = 128M max_execution_time = 300
				
			

Way #3: Edit functions.php file

Go to your WordPress Theme file and add the following code to it.

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

Tags

Have any questions? Contact Me or left your comment below.

3 Comments
  • Frbetclawn

    interesting news

    5:12 pm March 8, 2024 Reply
  • Esbehew

    Cool + for the post

    3:12 am March 15, 2024 Reply
Write a comment

Category

Latest Posts

Stay Connected

About Me

web developer

Khalid Bin Ahsan

Full Stack Web Developer

My expertise spans across a range of technologies and platforms, including HTML, CSS, JavaScript, jQuery, Bootstrap, PHP, Laravel, and WordPress. With this extensive knowledge and hands-on experience, I have helped numerous clients and businesses develop and optimize their web presence to achieve their goals.. Learn More

Recent Comment