title: Does it matter what content-type I return with my FileContentResult?
body: <p>I need to return a <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.filecontentresult?view=aspnetcore-2.1" rel="nofollow noreferrer">FileContentResult</a> in my action method which could be many things. A pdf, an image, an excel spreadsheet, etc... </p>
  
  <p>How would I determine what content-type to return and what on the client(browser) is going to inspect/use that content/MIME type? If nothing besides javascript, how significant is getting the MIME/content type correct.</p>
  
  <p>MIME and content-type are the same thing, right?</p>
  
  <pre><code>public IActionResult Download(string documentName,string filename){
  
  string filePath = path.Combine(Directory.GetCurrentDirectory(),"Uploads",$"{documentName}_{fileName}")
  byte[] fileContents = System.IO.File.ReadAllBytes(filePath);
  return File(fileContents,"What goes here?");
  </code></pre>