abhimortal6 / simple_s3

MIT License
7 stars 14 forks source link

upload error in debug mode #20

Open noumanamin opened 2 years ago

noumanamin commented 2 years ago

am try to upload image or video file to aws s3 server but i try to save plugin throw upload error ho can i fix this error

Screenshot 2022-07-05 at 1 37 38 AM

r

sirwes commented 2 years ago

Likely, you need to adjust permissions on your s3 bucket or Cognito role to enable put permissions and ACL put permissions

Zeeshan0201 commented 2 years ago

facing same issues, @sirwes can you elaborate more?

sirwes commented 2 years ago

There are a number of things that may be stopping the transfer. Try any (or all) of these things

  1. Go to the bucket, under the tab permissions and unblock all of the public access (bucket settings)
  2. Go to the IAM policy that allows the upload. Make sure these 3 actions are available: s3: PutObject, s3:DeleteObject, s3:PutObjectAcl. Specify the resource you want it to point to (e.g. your bucket arn). Optionally specify the file type you're uploading in that line too. For example a resource may be "arn:aws:s3:::my-bucket/*.png"
  3. If you're doing this from flutter web, you could add to the CORS section of your bucket permissions to allow PUT methods from the origin of choice
devzipmed commented 2 years ago

have you got the solution for the upload to s3 ?