Instructions for Using the "GS Zip File Generator" Plugin
This guide explains how to configure your Bubble workflow to use the plugin that creates a zip file from a list of attachments and provides a single download URL.
1. Gather Your Required Data
Before setting up the plugin action, make sure your workflow has access to these three pieces of information:
Attachments (List of files): A list of the specific bubble.io files (e.g., invoice1.pdf, photo.jpg) that you want to bundle. These files must be accessible on your Bubble storage.
Base URL: The root URL of your Bubble application (e.g.,
https://myappname.bubbleapps.io).
New File Name: The desired name for the final output zip file (e.g., Client_Archive.zip). Be sure to include the .zip extension.
2. Set Up the Workflow Action
Navigate to the Bubble Workflow where you want the zip generation to occur (e.g., when a user clicks a "Download All Files" button).
Click "Click to add an action...[zipfile]" in the workflow steps.
Select the Plugins category.
Choose the action "Generate Zip File"
3. Configure the Plugin Parameters
In the configuration panel for the plugin action, provide the values for the three inputs:
Attachments: Use an expression that returns a List of Texts. This could be the result of a database search, a repeating group's list of files, or the value of a multi-file uploader.
Base URL: Use the standard Bubble expression: This Website's URL. This ensures the correct application URL is passed.
New File Name: Enter a static text value (like "Project_Files.zip") or a dynamic value from an input field.
4. Implement the Download Action
The plugin's primary job is to generate the zip file and provide its URL. You need a final step to use this URL for the download:
Immediately add a new action after the plugin step.
Go to the Navigation category.
Select the "Open an external website" action.
For the Destination URL, use the result of the previous step: Result of Step [Plugin Action Number]'s Zip File URL.
When this workflow runs, the last step will direct the user's browser to the generated zip file URL, automatically starting the download of the archive.