我的url=>;http://180.100.200.202/api/files/upload
这是我的密码
uploadFiles({
toUrl: "http://180.100.200.202/api/files/upload",
files: files,
method: "POST",
headers: { Accept: "application/json" },
begin: () => {
},
progress: ({ totalBytesSent, totalBytesExpectedToSend }) => {
// console.log({ totalBytesSent, totalBytesExpectedToSend })
},
})
.promise.then(_ => {
})
.catch(_ => {
console.log(_)
})
当我调用上述代码时,我得到以下错误:
[Error: Failed to connect to /180.100.200.202:80]
这不是我的url.为什么会改变?
EDIT: It works perfectly in emulator but in cell phone does not.