0

I need to return multiple zip files from web API . I don't want to return all file in one zip file. I want to get all files in single request. please help me how can i do that in asp.net web API

G.S. Shekhawat
  • 239
  • 4
  • 13
  • add what you have tried till now by editing the description. – phoenix Dec 19 '15 at 09:46
  • Not sure what you want but I'm afraid you cant "download" multiple files in a single request. Each request can download one zip file. What if you return all the zip files download links and them download all of them separately? – jpgrassi Dec 19 '15 at 12:10

2 Answers2

0

This anwer might give you an idea how to implement this. It is either zip all files together or use JavaScript to open multiple windows for each download.

Community
  • 1
  • 1
Xeon
  • 3
  • 1
  • 4
0

You can use the MIME multipart/mixed to return multiple files in a single request.

You have to implement a custom MediaTypeFormatter to make this work, how you do that is up to you.

The specifications for are available here

Dietz
  • 578
  • 5
  • 14