Use of icons in substitution of file upload links

Hi,

Is there a way to associates a specific file type icon when uploading files in a post vs the url links that are dynamically created?