Skip to content

Remember the original filename of uploaded assets #1282

Open
statamic/cms
#11423
@daun

Description

@daun

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 }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions