Piping stream from busboy to request post

前端 未结 3 1640
清歌不尽
清歌不尽 2021-02-05 14:18

I have multipart/form-data that I am posting to an express endpoint /data/upload, form markup below:

form(enctype=\"multipart/form-data         


        
3条回答
  •  面向向阳花
    2021-02-05 14:41

    If possible, send a custom header with exactly size file (bytes). The header always can be read before handle payload stream. Use this instead of content-length header of previous answer, because that sometimes doesn't works (with small files, i guess, but i cannot ensure that works with large files).

提交回复
热议问题