Search code examples
filefile-uploadstreamingnestjsdropbox

NestJS upload file directly to dropbox


I have route in NestJS which saving file using multer, and next send it to DropBox

The path of file is

User form -> NestJs Route -> Save file in temp folder -> Send file to dropbox from temp folder -> Delete file from temp folder

I would like to do it better, because I think maybe if 100 people upload at one time it can crash...

Have you some solutions to this problem?


Solution

  • Answer is use for multer destination a memoryStorage and i have a buffer in file object :)