Updated UploadFile service and method.