This is a simple plugin I wrote for a friend. I am posting it here because a few people have asked about this functionality for the userfiles plugin.  Since the userfiles plugin does much more than they needed I sent them this to use instead. It allows a file to be downloaded when clicked instead of opening in a new window or tab.  This plugin has not been posted on wordpress.org because It’s very simple and I don’t feel many people will have use for it. To use, download the file below, upload, and activate the plugin.  To add a file (easiest way) upload the file into the media library and copy the link.  Then in your post paste the link in the shortcode.  Shortcode usage is:

[filedownload 'FILENAME' 'TITLE'] where filename is the full path to the file and title is the link text.If no title is entered the file name will be used.  

Ex: [filedownload 'http://www.example.com/download/myfile.txt' 'Click to download']

Click To Download