-FP Posted January 23, 2016 Share Posted January 23, 2016 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 More sharing options...
Adriano Faria Posted January 24, 2016 Share Posted January 24, 2016 The file is renamed to the original name when downloaded. Link to comment Share on other sites More sharing options...
-FP Posted January 24, 2016 Author Share Posted January 24, 2016 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.