file_name

The file_name filter parses the file path and returns just the filename value.

{{ '/path/to/my/file.pdf'|file_name }}

< Back to the list of filters