add log in UploadFile