uploadDirectory as a config option