mintie619540410@163.com
mintie619540410@163.com
  • 发布:2018-11-08 22:09
  • 更新:2018-11-08 22:09
  • 阅读:179

mui uploader上传,接口调用总是返回413

分类:MUI

var url = App.getServerUrl() + "upload/fixedFile/emHeadImages";
var task = plus.uploader.createUpload(url, {
method: "POST",
blocksize: 5214692,
priority: 100
},
function(t, status) { //上传完成
if (status == 200) {
mui.toast("上传成功:" + t.responseText);
} else {
mui.toast("上传失败:" + status);
console.log(JSON.stringify(t))
}
}
);

2018-11-08 22:09 分享
已邀请:

要回复问题请先登录注册