Upload Module

All files which are uploaded into the file system (including documents) will have a record in a table to track the files. This will make searching for files easy, and will mean the database will stay a manageable size. There will need to be a cron job which spiders the file system to ensure the integrity of the mapping from the database to what's on the file system.