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 trialMUZ140710 Masimba Mapfurira
8,547 PointsHie, I am doing php and I coded a form with an image and i was to post the image, How can i access the image file usin
Hie, I am doing php and I coded have a form with some text and an image in it. Now that i have posted the form to the server, how can i access the image file from the post method?How can I post it on my website?
1 Answer
Liam Maclachlan
22,805 PointsHey there. This is not as simple as a couple of lines of code but the w3 school has a great tutorial. Check it out here
EDIT: You may need to modify this in relation to where you wanted to store the image. I did a project involving a variant of this code (about a year ago) and was working on the PHP to spot a duplicate file and to append the '(1)' to the end. Can't remember how far I got with that :)