Downloading multiple files in ASP.NET

added by DotNetKicks
10/26/2016 12:07:15 PM

1 Kicks, 418 Views

Every so often a question pops up on the forum asking why their multiple file download code only sends the first file. Typically, the code consists of a loop that iterates a collection of files and attempts to use Response.TransmitFile or a FileResult in MVC to dispatch each file to the client.