Icon and filesize on links to media items

We have recently had an accessibility audit and were told to add filesizes to all links to files. Is it possible to automatically add filetype icons and filesizes to media links.

For example, if an editor was to create a link to a pdf icon in the rich text editor the system would add a pdf icon and the file size automatically to the end of the link

Thanks

Balram


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/110627-icon-and-filesize-on-links-to-media-items