View files based on the mime-type of the file extension