Skip to content

Commit

Permalink
use universal file name
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyziggy committed Apr 9, 2024
1 parent b6b07b9 commit f9f72e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions FunctionApp/UploadDocumentToLoxo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ public async Task<IActionResult> 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);
Expand Down

0 comments on commit f9f72e9

Please sign in to comment.