added option to upload a directory of files