Web File Browser (Client Side)

Hello, I found this nice S3, client side, files browser.
I am trying to use it with Dreamobjects endpoint and credential. But something is missing…
Can you help me? This a short and clean code, may be we could fork it, and add to the list of compatible clients web page…
Please have a look:

I’d be glad to help but your message doesn’t have quite enough information… What exactly is missing? Try to provide information on what you have done, what you expected to happen and what exactly happened. Provide logs and screenshots, if necessary. Thanks!

Well, this is client side javascript s3 client, I just cloned the github repo to my server, when access index.html, I enter my dreamobjects bucket credentials, with objects-us-west-1.dream.io as endpoint. When try to connect I get “failed to list contents” error.

OK, you triggered my interest :slight_smile: I had to try this myself, as I was curious to see what this file manager looks like anyway. I have quickly created a static webserver on DreamObjects itself and dropped that s3commander code in it.

I noticed the popup error, checked the developer tools in Firefox and saw the cause: the bucket I was trying to access lack CORS. You need to enable access to resources as specified on https://help.dreamhost.com/hc/en-us/articles/216201557-How-to-setup-Cross-Origin-Resource-Sharing-CORS-on-DreamObjects and things will work fine… I managed to browse a bucket and upload content in it. I didn’t do extensive tests.

Hello, I tried to add CORS rule using s3cmd, and I got the following error:

IOError: [Errno 2] No such file or directory: ‘rules.xml’

Strange tha s3cmd info , returns:

Location: us-west-1

Payer: BucketOwner
Expiration Rule: none
policy: <?xml version=“1.0” enc…
cors: none

the first error is not clear to me “No such file or directory”. How did you launch the s3cmd command? what did you put in rules.xml? where is your s3commander running?

The second output is not weird: all buckets come with empty CORS.

Please provide as many details as possible, including the actual URL of the things you’re trying: if they’re on the internet, they’re already public and keeping them hidden from the forum will only make it harder for readers here to get a clue of what’s going on.