added config for upload_dir