Use enum instead of bool for UploadFile