I spent some time creating a download module for my site tonight, something I've been wanting to do for a long time now. Instead of listing links to downloadable content it makes much more sense to database the information and provide some sort of key or token to allow users to download files. This also has the added benefit of having the ability to count how many times files have been downloaded, store the last date/time they were downloaded and more. I put the database tables together pretty quickly and then wrote a simple ColdFusion template to manage the downloading. The template requires a UUID be passed in as the token it uses to match the requested download with a record in the database. The record returned from the DB includes all the information necessary for putting together the download via CFCONTENT; things like filename, filepath, etc.
If you want to see it in action check out the new Download pod to the right. Only a few items are available right now, including the new AppleScripts I wrote for browsing music at the iTunes Music Store and viewing hidden files on the Mac.