0

I have a method in asp.net mvc app that return a file.

public FileResult GetFile()
{
    ...
    return File(file_path,file_type,file_name);
}

But now a need to return a few different types files. Can one method do it? Or how to do it correctly?

Nitesh Kumar
  • 1,774
  • 4
  • 19
  • 26

1 Answers1

2

Either return a .zip file that contains all files or return a list of urls, pointing to each file and let the browser download all files individually.

Oliver
  • 43,366
  • 8
  • 94
  • 151