Jump to content

Pages file uploads. Download name.


Recommended Posts

So I uploaded a file into an upload field... and well, files get names that are not user friendly.

Is there a way to rename the file when the user downloads it? Like for instance give it the name of the record it's inserted in.

Link to comment
Share on other sites

31 minutes ago, Adriano Faria said:

The file is renamed to the original name when downloaded. 

I'm manually inserting the download link in the template, like this:

<a href="{$record->customFieldDisplayByKey('file_field', 'raw')|raw}">Download</a>

But the file name is well... some numbers and letters, not just the original uploaded file name.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...