Download selected files as Zip file using JavaScript

0
I get a requirement where user needs to download the selected files from the SharePoint Document Library by zipping all of them. This I wanted to tr purely using JavaScript. The below will explain you how to download selected files as zip file using JSZip.
After surfing the internet I found this useful tool called as JSZip
And then i implemented the code below:
ConvertToZip.js:
 

It doesn’t end here, you need to add the below Javascript files and an image of the zip file:
I have added a module:

 

230b10_35beefc25cc44f50a773e11dd25dfede
230b10_0990bfc0f5f44417bf8bdd01d34df1d0
230b10_e96da70499d142628ad07be3e10340da

14 thoughts on “Download selected files as Zip file using JavaScript

Leave a Reply