busboy not firing finish event

前端 未结 1 1510
走了就别回头了
走了就别回头了 2021-01-02 00:34

I am trying to pass a request object from my routes to a controller which processes the uploads,

here is the route -

app.post(\'/upload/notes\',auth         


        
1条回答
  •  爱一瞬间的悲伤
    2021-01-02 01:08

    You need to consume the file stream somehow. For testing purposes you can ignore the data by adding file.resume(); inside the file event handler.

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