【问题标题】:No file getting uploaded from postman even after supplying file via firebase即使通过firebase提供文件,也没有从邮递员上传文件
【发布时间】:2021-04-26 21:50:36
【问题描述】:
  const upload = async (request, response, next) => {
    const { files } = request;

    if (!files) {
      response.status(400).send({ message: "No file uploaded." });
      return;
    }
}

我错过了什么吗?

【问题讨论】:

标签: postman


【解决方案1】:

看起来它可以像在Body 中使用大写的File 而不是file 作为文件上传的键名一样简单。如果这不起作用,请尝试检查整个请求以查看您的中间件是否将文件放在请求对象中的不同键上。

【讨论】:

    猜你喜欢
    • 2020-09-05
    • 2021-10-13
    • 1970-01-01
    • 1970-01-01
    • 2019-01-20
    • 2018-10-22
    • 1970-01-01
    • 2017-02-15
    • 2020-06-19
    相关资源
    最近更新 更多