diff --git a/FunctionApp/UploadDocumentToLoxo.cs b/FunctionApp/UploadDocumentToLoxo.cs index 1bc6856..bf93132 100644 --- a/FunctionApp/UploadDocumentToLoxo.cs +++ b/FunctionApp/UploadDocumentToLoxo.cs @@ -61,8 +61,7 @@ public async Task Run( { var fileContent = new ByteArrayContent(fileData); fileContent.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream"); - var filename = Path.GetFileName(new Uri(fileUrl).LocalPath); - content.Add(fileContent, "document", filename); + content.Add(fileContent, "document", $"Filled in form ({DateTime.Now}).pdf"); var postResponse = await httpClient.PostAsync( $"https://app.loxo.co/api/{_settings.AgencySlug}/people/{personId}/documents", content);