Grupi

How to increase upload file size in XAMPP Server – Php Tutorial

  • Home
  • Careers
  • How to increase upload file size in XAMPP Server – Php Tutorial
How to increase upload file size in XAMPP Server – Php Tutorial

Hello everyone,

As a web developer and WordPress expert, I often use XAMPP to develop and test my projects locally before deploying them to a live server. One of the common issues I encounter when working with XAMPP is the limitation on file upload size. By default, XAMPP sets the maximum upload file size to 2MB, which can be a problem if you need to import large files, such as media libraries or database backups.

Fortunately, there is a simple solution to this problem. You can increase the maximum upload file size for XAMPP by editing the php.ini file. Here’s how to do it:

  1. Locate the php.ini file in your XAMPP installation directory. The file path should be something like: C:\xampp\php\php.ini
  2. Open the php.ini file in a text editor.
  3. Search for the following lines:
  4. upload_max_filesize = 2M
  5. post_max_size = 8M
  6. These lines define the maximum upload file size and the maximum size of a POST request, respectively.
  7. Change the values to the desired size. For example, if you want to increase the maximum upload file size to 20MB, you can set the values like this:
  8. upload_max_filesize = 20M
  9. post_max_size = 25M
  10. Note that the post_max_size value should be slightly larger than the upload_max_filesize value to account for other data in the request.
  11. Save the changes to the php.ini file and restart your Apache server in XAMPP.

That’s it! Now you should be able to upload larger files to your XAMPP localhost environment.

I hope this tip helps you in your web development work. If you have any questions or suggestions, feel free to leave a comment below.

This tutorial which is to increase upload file size in XAMPP Server is almost the same thing when you develop locally with Wampserver or Laragon server.

Happy coding !

Alain Web-creator Agency – Digital agency

Comments (2)

  • Riva Collins

    31 mai 2021 - 7:47 am

    It’s no secret that the digital industry is booming. From exciting startups to need ghor fore global and brands, companies are reaching out.

  • Obila Doe

    31 mai 2021 - 7:49 am

    There is absolutely no justification for an attack like this in our communities and we must all work together to bring those responsible to justice.

Leave A Comment

Archives

Our purpose is to build solutions that remove barriers preventing people from doing their best work.

Melbourne, Australia
(Sat - Thursday)
(10am - 05 pm)
Cart