aliyun / aliyun-oss-react-native

MIT License
148 stars 100 forks source link

asyncUpload上传成功返回数据问题 #32

Open SuperiHer0 opened 5 years ago

SuperiHer0 commented 5 years ago

asyncUpload 上传成功,返回的数据类型,怎么拿到url 返回结果--- <OSSTask: 0x6000022dc1c0; completed = YES; cancelled = NO; faulted = NO; result = OSSResult<0x6000023a3500> : {httpResponseCode: 200, requestId: 5BD96FE20C51712121F47F85, httpResponseHeaderFields: { Connection = "keep-alive"; "Content-Length" = 0; "Content-MD5" = "xBqgoHuQvuTNX0u+SFPMSA=="; Date = "Wed, 31 Oct 2018 09:03:31 GMT"; Etag = "\"C41AA0A07B90BEE4CD5F4BBE4853CC48\""; Server = AliyunOSS; "x-oss-hash-crc64ecma" = 3024406496928251140; "x-oss-request-id" = 5BD96FE20C51712121F47F85; "x-oss-server-time" = 184; }, local_crc64ecma: (null)}>

dowei commented 5 years ago

拿不到url,只能自己组。如果是公开的类似下面这样吧: 'https://'+ bucketName + '.' + endPoint +'/' + objectkey;

SuperiHer0 commented 5 years ago

拿不到url,只能自己组。如果是公开的类似下面这样吧: 'https://'+ bucketName + '.' + endPoint +'/' + objectkey;

是的,我也是这样拼出来了,谢谢回复。

del1214 commented 4 years ago

感谢分享