I'm using FileContentResult method to download a generated PDF file. After running this code
public FileContentResult genPDF(PDFFileData m)
{
try
{
var FL = generatePDF(m);
var FLBytes = System.IO.File.ReadAllBytes(FL.FullName);
return File(FLBytes, "application/pdf", "PDF_FILE.pdf");
}
finally
{
sendEmail();
}
}
file is saved in my downloads folder by default. How can I change that? I want to save this file in a custom folder.