Add file extention to VIEW DETAILS

It is useful if we want for example catch all files with .pdf extention and append some image to  them.

related: #2440