huhx / flutter_oss_aliyun

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

Can you provide the url of local signature access file #9

Closed panhuiAipami closed 1 year ago

panhuiAipami commented 1 year ago

You can see that your getObject is asynchronous. Can you provide a temporary access address for local signatures? That is, you can directly view the file link in the browser

thank you!

huhx commented 1 year ago

final Response resp = await Client().getObject( "filename1.txt"); final url = resp.requestOptions.path;

You can get the url from the response

panhuiAipami commented 1 year ago

Since the resource is private, sts signature is required to obtain temporary access credentials, which cannot be accessed directly through this link

huhx commented 1 year ago

Since the resource is private, sts signature is required to obtain temporary access credentials, which cannot be accessed directly through this link

Hi, I find a useful link. Maybe it will help to implement what you want. It will take times to do it since I am a little busy due to my job.

May I ask you that you use this package in web?

link: https://help.aliyun.com/document_detail/31952.html

panhuiAipami commented 1 year ago

Alioss provides SDKs generated from temporary access addresses of sts on multiple platforms, but there is no flutter. Can we write a dart version with reference to the code of other platforms

huhx commented 1 year ago

Alioss provides SDKs generated from temporary access addresses of sts on multiple platforms, but there is no flutter. Can we write a dart version with reference to the code of other platforms

Yes, it is possible. But need time to achieve this goal. And also I will appreciate the upcoming PR from anyone.

panhuiAipami commented 1 year ago

Alioss provides SDKs generated from temporary access addresses of sts on multiple platforms, but there is no flutter. Can we write a dart version with reference to the code of other platforms

Yes, it is possible. But need time to achieve this goal. And also I will appreciate the upcoming PR from anyone.

OK, your plug-in is very good. I'm using it in the Flutter project. I've encountered this problem so far. Thank you!

huhx commented 1 year ago

Alioss provides SDKs generated from temporary access addresses of sts on multiple platforms, but there is no flutter. Can we write a dart version with reference to the code of other platforms

Yes, it is possible. But need time to achieve this goal. And also I will appreciate the upcoming PR from anyone.

OK, your plug-in is very good. I'm using it in the Flutter project. I've encountered this problem so far. Thank you!

Thank you. I am doing this feature in my spare time. Once i finished it, I will let you know.

huhx commented 1 year ago

add the feature of getting singed url in version: ^3.1.0

panhuiAipami commented 1 year ago

add the feature of getting singed url in version: ^3.1.0

nice ! thanks