Skip to content

Commit

Permalink
Update DotNET/Endpoint Examples/Multipart Payload/rasterized-pdf.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Dana Liang <dliang@datalogics.com>
  • Loading branch information
datalogics-tsmith and datalogics-dliang authored Jan 23, 2025
1 parent c8f4eef commit 0af8312
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

var byteArray = File.ReadAllBytes("/path/to/file");
var byteAryContent = new ByteArrayContent(byteArray);
multipartContent.Add(byteAryContent, "file", "file_name");
multipartContent.Add(byteAryContent, "file", "file_name.pdf");
byteAryContent.Headers.TryAddWithoutValidation("Content-Type", "application/pdf");


Expand Down

0 comments on commit 0af8312

Please sign in to comment.