This repository was archived by the owner on May 22, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 187
Download Files as a ZipFile
Muah edited this page Dec 14, 2017
·
20 revisions
currently we have only one way to download files, but when you try to download a multiple items, your download folder quickly becomes a miss.
so to solve that, we now have 2 options for downloading files
- 1- you can download separate files like normal.
- 2- download selected files as a .zip file.
if you decided to go with the second option, you will need to install a couple of extra packages
yarn add file-saver jszip jszip-utils
// or
npm install file-saver jszip jszip-utils --save
and that's it, we already took care of everything else & if none of those packages is found we will fallback to the default separate file saving.
also to make things easier, the zip file will be named after the current folder name or “media_manager” if you were at the root.
- because the zip file is created into the memory first, its highly recommended you check JSZip Performances/limitations