Home  >  Q&A  >  body text

javascript - webupload uploads images to node service

I used webupload to upload a picture to the server (node ​​service), and then I want to upload the picture directly to the Alibaba Cloud picture server through the node service

The problem is that the req.files file can now be obtained on the node side, as shown below, but how to convert this into a buffer or file stream so that it can be uploaded to the Alibaba Cloud server? Thank you.

曾经蜡笔没有小新曾经蜡笔没有小新2686 days ago748

reply all(2)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-07-05 10:39:35

    Official DEMO

    reply
    0
  • 天蓬老师

    天蓬老师2017-07-05 10:39:35

    new Buffer(JSON.stringify(str))

    reply
    0
  • Cancelreply