收藏
回答

wx.uploadFile返回errMsg:"status":404,这个是为什么?

  1. data

我使用如下接口上传文件,最后返回404,这个是为什么?

wx.uploadFile({

      url: "http://localhost:80/upload",

      filePath: e.tempFilePath,

      name: "music",

      method: "POST",

      header: {

        "Content-Type": "multipart/form-data"

      },

      success: function (res) {

        console.log("res====",res)

      }

接口返回信息

  1. "{"timestamp":1693355744471,"status":404,"error":"Not Found","message":"No message available","path":"/upload"}"
  2. errMsg: "uploadFile:ok"





回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容