by Dougal Campbell on WordPress.org
A [documents] shortcode which will display a list of attached files, with file type icons, and linked to the files for easy downloading.
By adding a simple [documents] shortcode in your post or page, you get a
list of all documents (non-image/audio/video) attached. Each item in the
document list can be styled with CSS to indicate different document types
based on file extension (e.g., .doc, .pdf, etc).