Uploading large file to NodeJS webserver

前端 未结 3 1166
我寻月下人不归
我寻月下人不归 2021-02-09 03:04

I am serving up my web application using NodeJS server (ExpressJS) currently. One of the new requirements is for the users to be able to upload large videos (potentially in gigs

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-09 03:51

    Multer should work fine. It'll stream the data as it comes in over HTTP to a file on disk. It won't lock up your server. Then in your endpoint you have access to that file location and can do whatever you need with it.

提交回复
热议问题