Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorized download link #542

Open
jennydaman opened this issue Mar 12, 2024 · 0 comments
Open

Authorized download link #542

jennydaman opened this issue Mar 12, 2024 · 0 comments

Comments

@jennydaman
Copy link
Contributor

To facilitate the downloading of files using a web browser client, it is necessary to implement one-time use download links. For example, let's say we have a file /api/v1/files/1/very_big.dat which belongs to a private feed. It can be downloaded by making an HTTP request using the Authorization header. However, for a web browser to download the file, it cannot send custom HTTP headers.

We should provide an API, something like POST /api/v1/files/1/download/ which will return a one-time download link, e.g. /api/v1/files/1/very_big.dat?token=abcdefg. This download URI should allow file download without a HTTP Authorization header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant