Friday 2 June 2017

How to store/load photos into MongoDB

My apologies but I'm fairly new to the MEAN stack. I am currently trying to build a web application that allows users to create posts with an uploaded photo. How would I go about storing and loading those photos in MongoDB using mongoose? I tried doing some research, but all I could find was something about GridFS, which I didn't think was necessary for my app because the user would only be uploading 1 photo per post and will not be more than 16MB. Any help or guidance is greatly appreciated!



via calviners

No comments:

Post a Comment