- 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)
}
接口返回信息
- "{"timestamp":1693355744471,"status":404,"error":"Not Found","message":"No message available","path":"/upload"}"
- errMsg: "uploadFile:ok"