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

HTML jQuery Basics (2014) Creating a Simple Lightbox Perform: Part 2

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

How to let the user select an image from camera or from local folder? (JavaScript)

Hi guys,

Does anybody know how to do this?. I want the user be able to select a picture for his/her profile, and give the chance to select from a new picture taken with the camera or select one already saved in the mobile/computer.

Cheers,

Jorge

2 Answers

robberbaron
robberbaron
23,869 Points

Hi Jorge,

maybe this article could help: http://www.html5rocks.com/en/tutorials/file/dndfiles/

this one seems even easier: http://zurb.com/playground/ajax-upload I don't know whether it only works in foundation... you'll have to check...

Cheers, Marc

Jorge Guzman
PLUS
Jorge Guzman
Courses Plus Student 21,390 Points

Hi Mark,

Many thanks man.

Both look very useful. I will try to go deep with the first one.

Cheers!.