直接从应用端调用S3接口实现图片上传。

0

海外区,我要部署图片app,想实现用户使用app时,直接从应用端发起命令,调用S3的接口去实现图片上传,请问是否可以实现?之前的想法是在服务端集成 s3 的sdk ,应用端直接调服务端接口,现在想不经过服务端,直接从应用端去调用S3接口。

profile picture
EXPERT
asked 2 months ago7 views
1 Answer
0

参考这篇博客: https://aws.amazon.com/cn/blogs/china/aws-sts-openid-connect-realize-s3-permission-control/ 尝试和STS集成
手机原生应用上传s3有sdk,可参考demo https://github.com/awslabs/aws-sdk-android-samples/tree/main/S3TransferUtilitySample; 其中鉴权部分集成了cognito,可以自行在服务端集成sts生成临时token,给客户端使用

profile picture
EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions