I want to download multiple documents from document library. I select several documents and then click on 'download' icon present in ribbon. It should download all files and retain its metadata. 'Download' should be custom action in ribbon. Can anyone please provide me custom code for the same.
That's more a case of LMGTFY - Here's a complete tutorial plus a .wsp to add this function.
To get some basic understanding
Since you can't download multiple files in one response, you need to package them in a
.zip for example. What you have to do is getting the
byte foreach file and package them together. Then add created
.zip to the response to invoke a download dialog.