rinku ahamed

How to Increase Upload File Size in WordPress

To increase the file upload size limit in WordPress, you’ll need to modify certain settings in both your server configuration and your WordPress installation. Here’s a step-by-step guide:

Server Configuration:

For Apache:
  1. Locate your .htaccess file in the root directory of your WordPress installation.
  2. Add or edit the following lines:
					php_value upload_max_filesize 128M
  php_value post_max_size 128M
  php_value memory_limit 256M
  php_value max_execution_time 300
  php_value max_input_time 300
For Nginx:
  1. Edit your site’s Nginx configuration file, typically located in /etc/nginx/sites-available/your-site
  2. Add or edit the following lines within the server block:
					client_max_body_size 64M;

Leave a Reply

Your email address will not be published. Required fields are marked *


I’m a passionate Front End Developer & WordPress expert with 2 years of experiences. With a strong foundation in design principles and a keen eye for detail, I specialize in translating complex ideas into user-friendly interfaces that captivate and engage.

Popular Posts