Why a new ZIP module when two modules are already available in Mendix Marketplace? Quite simply, because these modules cannot handle a folder structure. When you create a ZIP download from a file storage system – like Azure FileStorage, OneDrive or Sharepoint for example – you want to see the folder structure reflected in the ZIP file. But it’s not limited to downloads from a file storage, it can be applied in other ways as well. You can also create a ZIP file with, for example, all documents per employee or per project in separate folders.
Beside the folder structure, another advantage of this ZIP module is the ability to add to an existing ZIP file. This also makes it possible to add files to an already present or uploaded ZIP file.
It works simply via the Java action “Add files to zip”. This action is made available by default in the toolbox of a microflow. The procedure is as follows:
In time this module will be extended with the possibility to unzip, which also takes into account the folder structure.