Julio Raposo
Julio Raposo

Reputation: 107

Nest.JS with Multer and MongoDb

I am making a NestJS API where I want to make image uploads so that I can set the user profile photo or post banner

I am currently using mongodb for storage and the more recommended library to store images is Multer (what I got in my google searches)

I saw an Express tutorial so that I could see the way multer works...but when I tried to see the nestjs version...I only found examples that did not store it in the database...

So I need your help guys...can you please give me a CRUD nestjs with multer and mongodb code example or some links to help me please?

I appreciate if you have read this far

Upvotes: 0

Views: 978

Answers (1)

Afaq Shah
Afaq Shah

Reputation: 365

The process of file uploading is quite simple. You can take a look at the official documentation FIle Upload. If you want a practical guide then this Link maybe useful to you. Regards!

Upvotes: 0

Related Questions