I've searched everywhere but can't seem to get a straight answer. I want to write a php script to zip and download an entire subfolder in my assets directory. The subfolders are named based on a variable. Where do I write this php code? Must I write a custom plugin for something so simple?


1 Answer 1


Yes, you'd need to write a plugin to do this... or you could write a module. There are some plugins that may already do what you want tho: Squeeze / Compress

  • Thanks for the answer. I'm already using Squeeze, it only seems to zip files, not a folder. Jan 20, 2020 at 17:50
  • @JJefferyDev you can combine multiple files in one download so you should be able to retrieve a complete folder with it.
    – Oli
    Jan 22, 2020 at 10:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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