Blasanka / aws_s3_plugin

This is a plugin created for file upload to AWS S3
Other
10 stars 13 forks source link

how to set ACL as public #13

Open lokeshpaladugula opened 3 years ago

lokeshpaladugula commented 3 years ago

im getting access denied when i trying to get data from s3 which was uploaded using this asw_s3 package? can anyone help to send ACL as public

leoshak commented 3 years ago

Hi, @lokeshpaladugula,

IOS or Android?

Its already PublicRead:

Android:https://github.com/Blasanka/aws_s3_plugin/blob/78d4d934612226bca4a7d28a8a719442859ad8c6/android/src/main/java/com/blasanka/s3flutter/aws_s3/AwsS3Plugin.java#L129

IOS: https://github.com/Blasanka/aws_s3_plugin/blob/78d4d934612226bca4a7d28a8a719442859ad8c6/ios/Classes/SwiftAwsS3Plugin.swift#L112

Anyway, there are lot to improve and features to add. Its hard to find myself time these days but sooner I will add a parameter to change the ACL.

If you got some time @lokeshpaladugula, you can PR also.

lokeshpaladugula commented 3 years ago

no bro.. when i upload some video to s3 bucket its uploading fine but when i try to get the video it is showing "Access denied" . so when i am uploading to i have to send policy with ACL as public right?

leoshak commented 3 years ago

@lokeshpaladugula Thats whats I am telling, implementation is designed to by default sending as public read. Please check AWS. Because this plugin I am using more than a year with more than 10000 user base app. Everything fine for me.

If your bucket is publicly available get the uploaded url and check with the web browser. If that not accessible, please let us know. Thanks!