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

Feature Request: File Download Template without proxy download and instead using CDN URL #400

Open
Petersoj opened this issue May 10, 2024 · 0 comments

Comments

@Petersoj
Copy link

The "Default file download template" shows the uploaded filename and size badge embedded within the post which looks great, but it requires that the file be proxy downloaded through PHP so that statistics gathering and hotlink protection can be used. However, if using a CDN URL (like from AWS CloudFront) and hotlink and statistics gathering are disabled, this behavior would be undesirable since the CDN would provide more efficient file downloading capabilities. The "Just URL" template would work fine as it uses the CDN URL, but inserting the plain URL doesn't look as aesthetically pleasing as the filename and size badge embedded within the post. I'm proposing one of the following:

  1. When using the "Default file download template", hotlink and statistics gathering are disabled, and a CDN URL is provided, use the CDN URL to download the file, otherwise proxy download the file through PHP.
  2. Add another download template called "CDN file download template" that behaves the exact same way as "Default file download template", but uses the approach that the "Complete image preview template" uses, that is, no statistics are gathered and hotlink protection is ignored, and the CDN URL is used to download the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant