Forum

Thread tagged as: Question

Obtain just the suffix from file

Using

<perch:content id="file" type="file" label="File" />

Is it possible to obtain just the suffix from the filename? The purpose is for adding a class to display a filetype icon.

Tony Astley

Tony Astley 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think the closest you'll get is output="mime"