Unsolved
This post is more than 5 years old
1 Message
0
977
How to download named file using access token?
Hello,
I'd like to be able to use an access token in a URL to enable an anonymous user to download a file only once, directly from Atmos. However, I think I can only get it named as the object id.
Is there any way I can pass a disposition? Alternatively, can I generate a shareable URL that can only be used a single time?
Thanks for any help,
Ephraim Mower
Anonymous
5 Practitioner
5 Practitioner
•
274.2K Posts
0
July 22nd, 2015 09:00
You can let non-authenticated users to upload data to or download data from Atmos by:
"Using shareable URL's" - Allows anonymous users to download one file/object. The URL expires at a predetermined time.
or
"Using access tokens for anonymous upload and download" - Allows anonymous users to upload or download one file/object as defined by the access token.
A sharable URL has the following syntax:
http://MyAtmosServer/location?uid=uid&expires=expires&signature=signature&disposition=attachment&filename="myfile.txt"
Hope this helps