Uploading file without multipart/form-data (server to server)

前端 未结 1 1817
天涯浪人
天涯浪人 2021-01-21 04:23

From this answer https://stackoverflow.com/a/1695287/256400 , I get the feeling that multipart/form-data is needed to upload file from browser to server. But if

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

    Answering this since I found what I was looking for.

    @npcode is correct. I didn't need to specify any encoding and I was able to work directly with Buffer object and I got it working.

    I am now using request npm module which takes Buffer objects in body. My confusion arised from the rest client I was using initially which was mojito platforms rest client

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