79478582

Date: 2025-03-02 03:21:33
Score: 0.5
Natty:
Report link

Move Content-Disposition and Content-Type to the file content.

fileContent.Headers.ContentType = new MediaTypeHeaderValue(contentType);
fileContent.Headers.ContentDisposition = new 
ContentDispositionHeaderValue("form-data")
{
  Name = "\"file\"",
  FileName = $"\"{Path.GetFileName(fileFullPath)}\""
};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Nneka