Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

I am trying to upload a file (image to be precise) using XAMPP. The problem is that i can not upload files of size > 2MB

I am trying to upload a file (image to be precise) using XAMPP. The problem is that i can not upload files of size > 2MB. Can anyone help me if there is a way i can change the settings on XAMPP to suit what I wanna do. Your help will be gratefully appreciated

1 Answer

ravindra barthwal
ravindra barthwal
2,271 Points

Hello

Yes you can able to do this very easy just follow the steps.

  1. Go to the directory where XAMPP is installed.
  2. Search for the file php.ini in the directory
  3. Open the php.ini and search for max upload filesize (the name is similar so check for max keyword to get easily)
  4. change the value of max upload filesize accordingly.
  5. Save the php.ini close the file and restart the XAMPP server and now you can upload bigger files.

If this help please mark it best answer so that other members having same problem will get benifit