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

Remember the original filename of uploaded assets #1282

Open
daun opened this issue Dec 9, 2024 · 0 comments
Open

Remember the original filename of uploaded assets #1282

daun opened this issue Dec 9, 2024 · 0 comments

Comments

@daun
Copy link

daun commented Dec 9, 2024

It would be great to have access to the original filename of assets before they were sanitized. When implementing download buttons or zipping folders for downloading, it often makes sense to use the filename as intended by the uploader, including spaces and upper/lowercase.

Sunset in Torino © Emanuel Beier.jpgsunset-in-torino--emanuel-beier.jpg

{{ assets }}
  <a href="{{ url }}" download="{{ original_filename }}">Download PDF</a>
{{ /assets }}
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