I'm setting up an xml page in which I need to have just the file name of an image from a file upload field. What I currently have is:


but what this results in is:


When what I only need is 11-january-006.jpg

any ideas on the best approach for this?

2 Answers 2


Use the file field tag pair:


No add-on required!

  • I can't believe I forgot about that option.
    – CreateSean
    Feb 9, 2013 at 0:08

Does the filename variable not work for you?

  • Nate, nope but I found an addon that does what I need. Should've looked first before posting. devot-ee.com/add-ons/jco-get-file-info
    – CreateSean
    Feb 8, 2013 at 22:21
  • 1
    That only works within the {exp:file:entries} tag, which has different syntax from the File fieldtype tag pair (for some crazy reason). Feb 8, 2013 at 22:32
  • It's the easy questions that you need to slow down on before answering, nice catch :)
    – Natetronn
    Feb 8, 2013 at 23:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.