Skip to content

Download Files as a ZipFile

Muah edited this page Jun 7, 2018 · 20 revisions

Update

from v3.0.1 files with duplicate names will be appended with a number ex.abc.jpg > abc_1.jpg so you dont lose files when zipping.

currently we have only one way to download files, but when you try to download a multiple items, your machine/device downloads folder quickly becomes a mess.

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.

Notes

  • we don't persist the folder structure when we zip a folder with nested directories,
    rather we list all of its nested files & put them all into the same level,
    however if you still want the same structure, you're better off zipping each nested folder contents on its own.

  • to track the zip progress/errors, we use websockets through laravel-echo, however if you dont want to use it its okay but you wont be able to track the zip stream operations.