private static async Task RequestFileUpload(this IPlanGridApi api, FileUploadRequest request, VirtualFile file) { FileUpload fileUpload = await api.Post <FileUpload>(request.Url, new UploadFile { FileName = file.FileName }); await api.Upload <object>(fileUpload, file.Data); }