Yes, I'm working on a project and uploading users profile images, but now I'm confuse where should I save them. Should I save them on mongo as type of Buffer, or in the directory?
I think using Buffers can get very confusing itself (so don't feel alone in that!), I can't say exactly since I don't know the extent of everything, but try this stackoverflow post. Here's also a post that goes into Buffers in Mongo DB. I hope that helps. (I personally think it may be easier to save to a directory, but I don't want to discourage you from using buffers in mongo since that could also be a really great learning experience and you are capable of doing either!)
Yes, I'm working on a project and uploading users profile images, but now I'm confuse where should I save them. Should I save them on mongo as type of Buffer, or in the directory?
I think using Buffers can get very confusing itself (so don't feel alone in that!), I can't say exactly since I don't know the extent of everything, but try this stackoverflow post. Here's also a post that goes into Buffers in Mongo DB. I hope that helps. (I personally think it may be easier to save to a directory, but I don't want to discourage you from using buffers in mongo since that could also be a really great learning experience and you are capable of doing either!)
Thank you so much!