aws-amplify / aws-sdk-android

AWS SDK for Android. For more information, see our web site:
https://docs.amplify.aws
Other
1.02k stars 548 forks source link

How to upload to s3 with endpoint URL #3517

Open chandangit89 opened 5 months ago

chandangit89 commented 5 months ago

State your question

Which AWS Services are you utilizing?

Provide code snippets (if applicable)

Environment(please complete the following information):

Device Information (please complete the following information):

If you need help with understanding how to implement something in particular then we suggest that you first look into our developer guide. You can also simplify your process of creating an application, as well as the associated backend setup by using the Amplify CLI.

chandangit89 commented 5 months ago

I tried all the documented methods in your website but couldn't succeeded, I have a endpoint URL, access key, security key, bucket name only. i do not have dashboard access so how to give policy required to upload from mobile, whole lot of issues but i couldnt find any solution from your documentation

mattcreaser commented 5 months ago

Hi @chandangit89, could you please be more specific about your error? What happens when you try to upload the file? Can you show a code snippet?

This issue is posted in the AWS SDK for Android - unless you are already heavily invested into this SDK I would also strongly recommend using the much newer Amplify V2 (docs) instead.

You will need to have a policy set up to allow file upload access. It's not specific to a particular platform, but the identity performing the operation will need permission.