I have a zipped file which I am trying to stream to client:
public FileResult GetFiles()
{
return File("test.zip", "application/zip");
}
The file downloads but without the ".zip" extension.
You could specify a download filename:
return File("test.zip", "application/zip", "test.zip");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With