HOW TO INCREASE WAMP SERVER FILE SIZE

When we work with WordPress in localhost WAMP server, there are few common errors that can be occurred, when we are going to upload some large files.you can do that by updating your “php.ini ”.

WAMP server already setup maximum upload file size as a 2M.But all users need to upload file size more than 2M. If you are trying to upload file size more than 2M you can see error message as below

Error text: file_name” has failed to upload due to an error – This file exceeds the maximum upload size for this site.

How to fix the Maximum upload size exceeded” Error

 I need to increase my maximum upload file size up to 32MB

To increase the maximum upload file size in WAMP server, you need to adjust the settings in PHP configuration. Here’s how you can do it:

Locate the php.ini File:
Navigate to your WAMP installation directory. Typically, it’s installed in `C:\wamp\` on Windows. 

Within this directory, locate the `php` subdirectory.

Edit the php.ini File:
Find the `php.ini` file in the `php` subdirectory and open it in a text editor.

Adjust the upload_max_filesize and post_max_size Directives:
Search for the following directives in the `php.ini` file:

upload_max_filesize = 2M
post_max_size = 8M

Change the values of `upload_max_filesize` and `post_max_size` to the desired size. For example, to set the maximum upload file size to 32MB, you can change them to:

upload_max_filesize = 32M
post_max_size = 32M

Save the Changes:
Save the modified `php.ini` file.

Restart WAMP Server:
Restart your WAMP server to apply the changes. You can do this by clicking on the WAMP icon in the system tray and selecting “Restart All Services.”

After following these steps, your WAMP server should allow uploads of files up to 32MB in size. Make sure to test the file upload functionality on your website or application to verify that the changes have taken effect.

2 thoughts on “HOW TO INCREASE WAMP SERVER FILE SIZE

  1. “Wow, what a comprehensive and insightful article! This guide on securing WAMP server is incredibly valuable and well-written. The step-by-step instructions and best practices provided make it easy for anyone to understand and implement security measures effectively.

Leave a Reply

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