aliyun / aliyun-oss-react-native

MIT License
148 stars 99 forks source link

上传回调无效,不走 #65

Open MRGAN-J opened 4 years ago

MRGAN-J commented 4 years ago

const downloadProgress = p => console.log(p.currentSize / p.totalSize); AliyuOSS.addEventListener('uploadProgress', downloadProgress);

不走downloadProgress回调

RenderCoder commented 4 years ago

看下 AliyunOSS.asyncUpload 方法是不是走了 catch,上传报错了的话是不会走这个回调的。

还有明明是个上传方法 uploadProgress 文档竟然写的是 downloadProgress...