Shared Access Token
Solved
Surfer
-
Hello,
We currently have Surfer setup as User Restricted Access. We'd like the ability to generate a "Shared Access Signature" or Access Token, to publish some files publicly.This would be mainly for sharing files publicly via URL, if we would want to distribute a specific file for download. So when someone gets a direct link with the token, they can download the file but not list anything else in the directory.
Example: https://files.cloudron.server/public-files/file.txt?token=api6fc346eb80d8bc3cf286d08f103f8ed2
Thank you!
-
@JLX89 you can already use the regular REST api for this. Generate an access token via the user interface and then you can hand out links with them like:
https://files.cloudron.server/api/files/<filepath>?accessToken=<accesstoken>