file_name Twig Filter

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

This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
{{ '/path/to/my/file.pdf'|file_name }}
This documentation is only for Aptuitiv CMS. Learn more.
Get Started With Aptuitiv