huhx / flutter_oss_aliyun

阿里云oss sdk的flutter版本
MIT License
61 stars 22 forks source link

可以拿到返回结果吗 #38

Closed zxzxac110 closed 1 year ago

zxzxac110 commented 1 year ago

我想要拿到上传完毕的返回结果 发现未null

难后在 putObjectFile 里面使用 callback 发现好像并没有生效 都没有跑进去

putObjectFile( file.path, fileKey: fileName, option: PutRequestOption( onSendProgress: (count, total) { print("send: count = $count, and total = $total"); }, onReceiveProgress: (count, total) { print("receive: count = $count, and total = $total"); }, aclModel: AclMode.inherited, callback: Callback( callbackUrl: "url", callbackBody: "{\"mimeType\":\${mimeType}, \"filepath\":\${object},\"size\":\${size},\"bucket\":\${bucket},\"phone\":\${x:phone}}", callbackVar: {"x:phone": "android"}, calbackBodyType: CalbackBodyType.json, ), ), )

huhx commented 1 year ago

fix in version: 6.2.3

zxzxac110 commented 1 year ago

大呼 66666