fix _upload_dir