oss multipartUpload上传出错 Invalid value -问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

oss multipartUpload上传出错 Invalid value

使用multipartUpload上传,出现错误
TypeError: Failed to execute 'fetch' on 'Window': Invalid value (req "error"), PUT http://mbrain.oss-cn-shanghai.aliyuncs.com/492ba2e84eb4db4b41f49b2813ec34bd.png -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":0,"closeSocketCount":0,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{},"requests":{}})
headers: {}

at TypeError (native)
at n.149.d._onFinish (file:///Users/lsc/data/cbrain/trunk/code/wmind-desktop/js/aliyun-oss-sdk-4.3.0.min.js:8:26320)
at .<anonymous> (file:///Users/lsc/data/cbrain/trunk/code/wmind-desktop/js/aliyun-oss-sdk-4.3.0.min.js:8:25618)
at emitNone (events.js:91:20)
at emit (events.js:185:7)
at _ (file:///Users/lsc/data/cbrain/trunk/code/wmind-desktop/js/aliyun-oss-sdk-4.3.0.min.js:8:16322)
at x (file:///Users/lsc/data/cbrain/trunk/code/wmind-desktop/js/aliyun-oss-sdk-4.3.0.min.js:8:16378)
at n.137.a.end (file:///Users/lsc/data/cbrain/trunk/code/wmind-desktop/js/aliyun-oss-sdk-4.3.0.min.js:8:18493)
at n.149.d.end (file:///Users/lsc/data/cbrain/trunk/code/wmind-desktop/js/aliyun-oss-sdk-4.3.0.min.js:8:27916)
at i (file:///Users/lsc/data/cbrain/trunk/code/wmind-desktop/js/aliyun-oss-sdk-4.3.0.min.js:8:7532)

上传代码:
client.multipartUpload(filename, file, {

            progress: progress,
        }).then(function(result) {
            console.info(result);
            resolve(result);
        }).catch(function(err) {
            console.info(err);
            reject(err);
        });

上传参数:
filename:"492ba2e84eb4db4b41f49b2813ec34bd.png"
file:{name:勾选.png
path:/Users/lsc/Downloads/勾选.png
lastModified:1474960134000
lastModifiedDate:Tue Sep 27 2016 15:08:54 GMT+0800 (CST)
webkitRelativePath:
size:1388
type:image/png
slice:function slice() { [native code] }}
progress : function(p,cpt){

   console.info(p);
   console.info(cpt);

}

展开
收起
派生科技 2016-10-28 14:35:06 8026 0
3 条回答
写回答
取消 提交回答
  • 1491131725618540

    请问有人解决了吗 我现在也遇到这个问题

    2019-07-17 20:20:40
    赞同 展开评论 打赏
  • 哈哈哈126

    解决了吗 我也是这个问题 每次上传到500MB左右就报错

    2019-07-17 20:20:40
    赞同 1 展开评论 打赏
  • ttttttt
    2019-07-17 20:20:40
    赞同 展开评论 打赏
问答排行榜
最热
最新
相关电子书
更多
百问百答-OSS (上)
立即下载
百问百答-OSS (下)
立即下载
阿里云 JindoFS+OSS 数据上云实战
立即下载