Closed excxapp closed 7 years ago
有错误日志吗
找到原因了,看你源码,里面,你都用了blob,这样阻碍获得upptoken this.resolveImageInfo = function (blob, s) { var widthRe = /\$(imageInfo.width)/; var heightRe = /\$(imageInfo.height)/; if (!widthRe.test(s) && !heightRe.test(s)) { return Promise.resolve(s); } // return new Promise(function (resolve) { // var img = new Image(); // img.src = URL.createObjectURL(blob); // img.onload = function () { // s = s.replace(widthRe, img.width.toString()); // s = s.replace(heightRe, img.height.toString()); // resolve(s); // }; // }); };
去掉下面这些,就没有任何问题了
刚才测试了,直传和分片上传非图片都没有问题。
测试文件15m,一个rar包。
如果还有问题,麻烦贴一下详细上传代码:)
如题不知道,上传是否要配置什么?