awslabs / aws-js-s3-explorer

AWS JavaScript S3 Explorer is a JavaScript application that uses AWS's JavaScript SDK and S3 APIs to make the contents of an S3 bucket easy to browse via a web browser.
Apache License 2.0
825 stars 276 forks source link

Question: promptForBucketInput #112

Closed jaaayyy closed 1 year ago

jaaayyy commented 1 year ago

Hello,

Which part of the index.html should I modify so that the users can directly view the objects & subfolders of the bucket? Removing the need to input the bucket name -- like this for example: https://dj2taa9i652rf.cloudfront.net/

Regards,

danil-smirnov commented 1 year ago

You have resolved this already?

E.g. https://dj2taa9i652rf.cloudfront.net/cdc-moderna-vaccine-distribution/csv/cdc-moderna-covid-19-vaccine-distribution-by-state.csv is directly accessible.

jaaayyy commented 1 year ago

Not yet...

You have resolved this already?

E.g. https://dj2taa9i652rf.cloudfront.net/cdc-moderna-vaccine-distribution/csv/cdc-moderna-covid-19-vaccine-distribution-by-state.csv is directly accessible.

Not yet... in my own S3 -- it's prompting me to input a bucket-name (that's the default design)

image

What I'm trying to achieve is something like -> https://dj2taa9i652rf.cloudfront.net/ ...where the users can directly view the list of objects and subfolders.

Honestly, I have little to zero background in html..., im just kind of reverse-engineering stuff (apologies for that)

danil-smirnov commented 1 year ago

@jaaayyy Open the index.html file and search for var s3exp_config - there you can set the bucket and the region.

jaaayyy commented 1 year ago

got it working now .... thanks!!

john-aws commented 1 year ago

@danil-smirnov thank you for helping.