0

I have created a product page in SharePoint Online Pages Library. It has some standard field, e-g Title and Comments. It also has a Content Query WebPart that displays a list of linked files stored in a document library, Pages library and Documents library have lookup column relation.

I want to have a download button on the page to download all linked files in a zip.

I am looking for JSOM/JavaScript solution but I can also consider sandbox solution.

2 Answers 2

0

First create array of file URL you want to archive. Next for each file read the byte array. Then use jzip library to create zip file in client side.

0

Check the link : https://www.dsouzajoel.com/2015/12/06/download-selected-files-as-zip-file-using-jszip/

You may need to rework on the UI part. But the functionality will work

1
  • See last comment on other answer
    – Benny Skogberg
    Commented Jan 14, 2017 at 8:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.