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.
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");
© 2022 - 2024 — McMap. All rights reserved.