cleanup upload doc