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
mfk dn
37 PointsSave image in mongo db
How can I store the image in the mongo db using express?
I have read couple of solutions in stakoverflow but I could not understand. So could you please explain in lucid way. HTML code is:-
<form method='post'>
<input type="file" name='image'>
<input type='submit' value='submit'>
<from>
And also, how to verify that the file given as input is image type.