I want to link file in views to files/fid I have a content type, which has video and image attachment. In the view created on this content type, the table shows the thumbnails of video and image file. I want to link thumbnails to files/fileid. And not sites/all/default/files/filename....I want to link to file-id and not generic file...
   Tried rewrite results as a link but the lin there doesn't supports the tokens (file:fid or file:filename)..
Adding a field above the field in the list doesnt works because, he has build content on content type that has attachment, and not mere files..Means the view is not build on files so it will not have the field file:filename or file:fid...
         The best solution is to use custom formatter module {https://www.drupal.org/project/custom_formatters} and in that use html plus tokens with following code

&lt;a href="/?q=file/[file:fid]/"&gt;&lt;img src="[formatted_field-image:image_url:image_style-media_thumbnail]" alt="[field_property:alt]" title="[field_property:title]" /&gt;&lt;/a&gt; 


This will give the required link to the thumbnail, if you dont want thumbnail you can put text there....

and then in views select the custom formatter for the required image field...