caussourd / aws-s3-bucket-listing

List files in a S3 bucket in a web browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No listing the items in bucket

mysticalrosemedia opened this issue · comments

Have I done something wrong? I was looking forward to this script. All I am getting it "Amazon S3 Bucket list v 1.1"

Thank you for your help and attention

@mysticalrosemedia Have you granted permissions to Everyone to list?

From AWS console:
screen shot 2016-08-02 at 15 02 03

Yes I have
s3 management console

@mysticalrosemedia I can't reproduce your error... Which web browser are you using?

It's happening in chrome and edge

On Thu, Aug 4, 2016 at 11:56 AM, Céline Aussourd notifications@github.com
wrote:

@mysticalrosemedia https://github.com/mysticalrosemedia I can't
reproduce your error... Which web browser are you using?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARFi7zTtlRzEHawhtx-723__nC9ROTa3ks5qcguUgaJpZM4JaJP1
.

Marissa Hornbuckle
Mystical Rose Media
www.mysticalrosemedia.com
If you would like to book a meeting, please do
https://mhornbuckle.youcanbook.me/

@mysticalrosemedia Did you set up some specific settings that are not mentioned in the documentation for that bucket? What's your bucket name and AWS region?

@mysticalrosemedia What does your "CORS configuration" look like?

I have a bucket policy:
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": {
"AWS": ""
},
"Action": "s3:GetObject",
"Resource": [
"arn:aws:s3:::xxxx/
",
"arn:aws:s3:::xxxx/list.html"
]
}
]
}

* GET 3000 Authorization

@mysticalrosemedia Are the * missing in your answer? Your policy should be:

{
    "Version": "2008-10-17",
    "Statement": [
            {
            "Sid": "PublicReadGetObject",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::xxxx/*"
        }
    ]
}

I figured out the issue... I was not using the endpoint properly.

Thank you for your time

On Sat, Aug 6, 2016 at 4:44 AM, Céline Aussourd notifications@github.com
wrote:

@mysticalrosemedia https://github.com/mysticalrosemedia Are the *
missing in your answer? Your policy should be:

{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": {
"AWS": ""
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::xxxx/
"
}
]
}


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARFi7wK4IZ-mncnNPTdTEU8LHFtnJ9sIks5qdElmgaJpZM4JaJP1
.

Marissa Hornbuckle
Mystical Rose Media
www.mysticalrosemedia.com
If you would like to book a meeting, please do
https://mhornbuckle.youcanbook.me/

You're welcome. Thanks for letting me know.

I have the same problem as mysticalrosemedia. I'm using Safari 12.0.1. Perhaps I might ask in which way she was not using the endpoint properly?

Never mind! Same problem, same fix.

Ah, but I noted one thing . . . Just so you know. When I ^-click the file names, Safari 12.0.1 offers me the option to download the file . . . which is what I was aiming for . . .but Neither Chrome nor IE11 seems to offer that option. Those browsers will open the file in another tab; or, in the case of an .mp3, open Microsoft Media Player and play it back.