Hi Folks, I have a (dummy) question. It's my first project on nodejs and on backend side.I'm using nodejs, express, multer, mongoose with MongoDB. But I'm not sure what is the right place to store images for the user's avatars.I have seen a lot of examples like that github|example where I could store images in the package './uploads' on the server and store file.path to MongoDB model. Is it a perfect decision or I can find a more flexible and better solution? It seems to me maybe storing pictures in MongoDB is a more efficient approach or not?Thanks in advance!
Submitted February 02, 2020 at 03:36PM by dmelechow
No comments:
Post a Comment