natbat.net
Submitted by: The Dude

Adding the Size of Downloadable Files to Links Automatically

Every file on the web, be it a web page, a text file or whatever has HTTP headers associated with it. This is meta information about the file that is sent before the actual contents of the file itself. Included in this meta information is the size of the document.

This technique uses JavaScript to read that data, return the file size, and dynamically add it.

direct link