In application that enables file upload, I would like to place an icon that tells the file type. I have images of all the file types that are named: bar<fileExtension>.gif, for example: bardoc.gif, barxls.gif, barppt.gif etc.
How can I extract the type of the file that I uploaded (the file name is saved in a field) and make it appear beside the downloaded file in list view?
Thanks