Current time: 05-24-2017, 10:38 AM Hello There, Guest! (LoginRegister)

Post Reply 
Web File Browser (Client Side)
01-24-2017, 07:08 AM
Post: #1
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:
https://github.com/nimbis/s3commander
Find all posts by this user
Quote this message in a reply
01-24-2017, 11:15 AM
Post: #2
RE: Web File Browser (Client Side)
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!
Find all posts by this user
Quote this message in a reply
01-24-2017, 11:44 AM
Post: #3
RE: Web File Browser (Client Side)
(01-24-2017 11:15 AM)smaffulli Wrote:  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.
Find all posts by this user
Quote this message in a reply
01-24-2017, 03:50 PM
Post: #4
RE: Web File Browser (Client Side)
OK, you triggered my interest 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/arti...eamObjects and things will work fine... I managed to browse a bucket and upload content in it. I didn't do extensive tests.
Find all posts by this user
Quote this message in a reply
02-06-2017, 05:28 AM (This post was last modified: 02-06-2017 05:32 AM by fredfs.)
Post: #5
RE: Web File Browser (Client Side)
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
ACL:...
Find all posts by this user
Quote this message in a reply
02-06-2017, 01:38 PM
Post: #6
RE: Web File Browser (Client Side)
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: