aliyun / aliyun-oss-react-native

MIT License
148 stars 99 forks source link

源码asyncUpload有逻辑错误,请修正 #57

Open onebean06 opened 5 years ago

onebean06 commented 5 years ago

源码 if (cursor == null) sourceFile = selectedVideoUri.getPath(); int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); cursor.moveToFirst(); sourceFile = cursor.getString(column_index);

应该改为 if (cursor == null) { sourceFile = selectedVideoUri.getPath(); } else{ int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); cursor.moveToFirst(); sourceFile = cursor.getString(column_index); }

否则会进入catch逻辑中创建一个临时文件,而这个临时文件并不会在上传后删掉,麻烦修正下 谢谢

RenderCoder commented 4 years ago

这个 KPI 完成了,阿里的人不管了吧

yubaokang commented 4 years ago

傻屌出的sdk

chuting commented 4 years ago

是因为没人用吗? 一直不更新

RenderCoder commented 4 years ago

@luozhang002 @zephyrpersonal 请关注一下 Pull Request

zephyrpersonal commented 4 years ago

@luozhang002 @zephyrpersonal 请关注一下 Pull Request

我不是maintainer...这好久不更新了,建议自己fork吧