Hiya,
As regards to file-size this could be done in a number of ways. You could use some PHP to retrieve the information and print it to the page or you could use a plugin specifically for this job. There is one that I remember that Andy (ExpressionEngineer) made a while back called :
Filesize
That might help on that front.
Now down to what a file is. Hmmm!
If you are using standard extensions such as .pdf, .jpg, .doc and so on and so forth then you could just extract the extension from the end of the file and use some conditionals to say what the file is. You could probably also use some PHP magic, I think?
Depends really on how many formats you are going to be using? If only a few then I would go with simple conditionals as that would be the easiest in my mind.
Then as to the icons. Yep it’s a shame that IE doesn’t support selectors as it would be really easy then but coming back to what I said previously about how many file-types you are going to be supporting then if only a few again you could just extract the .jpg part and then use conditionals to display whatever image you desire.
Don’t know if that helps at all.
Best wishes,
Mark