Forum

Thread tagged as: Question

Output filename without the path

How do I output just the filename (eg: 'file.pdf') instead of the whole path (eg: 'admin/resources/downloads/file.pdf') ??

Many thanks!

Rob Saunders

Rob Saunders 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

No, you'd need to use the replace attribute to remove it.

Ok Thanks.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I'm presuming that output="filename" doesn't give you what you want.