Added the ability to upload a directory of files.