Download selected files as Zip file using JavaScript

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:

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:



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

Leave a Reply