DEV Community

Discussion on: What are React Hooks? 🎣

Collapse
 
maxinejs profile image
Maxine

Bugs/Errors are sometimes our best teachers :)

Collapse
 
majhar profile image
Amy S.

Sure, it is!

Collapse
 
majhar profile image
Amy S.

Hi, do you use multer in your express project?

Thread Thread
 
maxinejs profile image
Maxine

You most certainly can, are you looking to do a file upload?

Thread Thread
 
maxinejs profile image
Maxine

Feel free to PM me, I would be happy to help you out if I can.

Thread Thread
 
majhar profile image
Amy S.

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?

Thread Thread
 
maxinejs profile image
Maxine

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!)

Thread Thread
 
majhar profile image
Amy S.

Thank you so much!