Expressjs to upload an image using multer saves an image in a weird format

前端 未结 1 1790
北海茫月
北海茫月 2021-01-16 05:27

I am trying to build an API which will take in image so used multer for that purpose, I am getting a success for uploading an image but it saves in some weird format not the

相关标签:
1条回答
  • 2021-01-16 05:38

    This issue has been solved, for those who has similar kind off issue. What worked for me was doing

    app.use(multer({dest:'./angular-src/src/assets/'}).single('file')); 
    

    in the API class itself.

    0 讨论(0)
提交回复
热议问题