File Attachment display title in template

I’ve used a work around for this.

Instead of using the title name for the file i’ve added another field to use as the title. Not the way i intended but it works.