also allow directories to be uploaded by this plugin