【问题标题】:How to upload file and then send it to another server by Nodejs (expressjs)如何上传文件然后通过Node Js(express js)将其发送到另一台服务器
【发布时间】:2012-09-24 21:46:20
【问题描述】:
  1. 用户使用 input(type="file") 将文件上传到服务器
  2. req.files.avatar 访问服务器端的文件

如何通过 HTTP POST 方法 (name="avatar") 将此文件 (req.files.avatar) 发送到另一台服务器。我不想在发送前存储它。

【问题讨论】:

    标签: http node.js express


    【解决方案1】:

    我想你要找的是什么;

    https://github.com/nodejitsu/node-http-proxy
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-10
      • 2019-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-22
      相关资源
      最近更新 更多