support for uploading files from directory