On the page have a link to the file:
<a href="file.doc">File</a>
Next to the link should automatically show the extension and file size. Example: File (DOC, 15 KB)
How to do it?
I found this documentation:
How to have jQuery restrict file types on upload?
Find size of file behind download link with jQuery
but don't know how to unite them and show
UPD okay, how to know the file extension?