ext
FilenameExt returns the file extension without the leading dot.
FilenameExt returns the file extension without the leading dot.
Input
string
Parameters
None
Returns
string
Examples
Read the type of an upload
Input
file_path = "/uploads/avatar.png"Template
{{ file_path | ext }}Output
pngDetect a document format
Input
source = "Q3-report.pdf"Template
{{ source | ext }}Output
pdfHow is this guide?