Skip to content

Commit

Permalink
adjust filename
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyziggy committed Apr 16, 2024
1 parent d02df13 commit 1bb25f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FunctionApp/UploadDocumentToLoxo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public async Task<IActionResult> Run(
using (var content = new MultipartFormDataContent())
{
var fileContent = new ByteArrayContent(fileData);
var fileName = Uri.EscapeDataString($"Form {DateTime.Now}.pdf");
var fileName = $"Form_{DateTime.Now:yyyy_MM_dd_HH_mm_ss}.pdf";

fileContent.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");
content.Add(fileContent, "document", fileName);

Expand Down

0 comments on commit 1bb25f3

Please sign in to comment.