file info in attachment view if type is image or file