How can I access private files on Spaces using GET?

March 3, 2018 607 views

I am trying to access private files from my Spaces, I have not found any way to access my files through the GET method. I have a secret and a key id, the standard credentials, are there any variables I can use in order to access my private files using my id and secret?
For example, something like:
I really need help with this, if it is not possible, please can someone instruct me on how to access private files using the aws-sdk.
Thank you very much

2 Answers

Spaces was designed to be compatible with the S3 API in order to allow users to leverage existing tools. Accessing private files requires generating a signature for authentication. As this is quite complicated, you should generally use an existing library in your programing language of choice.

Check out this question for examples in a number of languages:

Let us know more about how you are trying to access the files, and we can provide a more specific answer.

We are trying to access the Private files from Spaces using Elfinder File Manager. But not able to access when it is having Private Access. So we are not able to access unless we give them Public Access which is may not good for the application. If we give Public access people can access using URL through any browser without any permissions.

We are able to upload files to the Spaces also, but not able to access same file that we just uploaded. So we would like to upload/access the files with Private access through Elfinder File Manager.

Currently we are using S3 Adapter. Appreciate if any suggestions.

Thank you very much
Venu Kommu

Have another answer? Share your knowledge.