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 trialCarla Thomas
Front End Web Development Techdegree Student 16,039 PointsWordPress Admin error (local development)
I am working locally in WP using XAMPP.
I need to upload an image (6.01 kb) but I keep getting the following error message:
*Maximum upload file size: 5MB. Dismissโ015.20.gifโ has failed to upload due to an error The uploaded file exceeds the upload_max_filesize directive in php.ini. *
I have read many online tutorials about editing the php.ini but I have yet to learn how to over-ride this brick wall.
Please help. Thanks in advance.
1 Answer
ankita das
Courses Plus Student 72 Pointsedit your php ini file where defoult upload limit is 2mb max and your problem was solved
Carla Thomas
Front End Web Development Techdegree Student 16,039 PointsCarla Thomas
Front End Web Development Techdegree Student 16,039 PointsI am apparently doing something wrong because editing the php.ini file is not working...not even sure if it is the correct php.ini file.
If you have specific directions for locating the php.ini file, please share. Thanks.
Andrew McCormick
17,730 PointsAndrew McCormick
17,730 PointsCarla Thomas , I think you've figured it out since you asked the newer question about where to find your php.ini file, however just to be clear... typically on a local setup like WAMP, you need to edit the php.ini file that is in your apache installation folder and not your php. I know, confusing.
John Wheal
27,969 PointsJohn Wheal
27,969 PointsDon't forget to restart Apache / PHP after you update the file.