How can I link the file name to the file?
You can solve by implementing a preprocess function
/themes/mytheme/mytheme.theme
&lt;?php

/**
 * Implements hook_preprocess_HOOK().
 */
function mytheme_preprocess_file_link(&amp;$variables) {
  $variables['link']['#title'] = t('Open Here'); // change title
  $variables['link']['#url']-&gt;setOption('attributes', ['target' =&gt; '_blank']); // open in a new browser tab
}

Rename mytheme to your actual theme name and clear/flush caches so hook gets picked up.