I’m trying to unzip a zip file and write the files to the bank or file manager, does anyone know if this is possible in the Bubble me backend?
Not sure about the backend, but this can do it on the front:
This plugin from @RapidDev_Team might work for you?
@rapidevelopers @RapidDev_Team - does this have a backend action too?
Hi @jonathan16, thanks for tagging us
We would recommend trying our plugin, which is front-based, and it will be faster than doing the same thing as a server action. It allows you to unzip remotely located files from URLs, or local files.
Please note that it might be a bad idea to unzip files in a server-side action because server-side action first of all has a timeout and it is about 30s, and if the files are big let’s say, you will be able to unzip them in this way.
Second, it will increase a lot your WU usage also entire app performance if such actions run in the backend.
In case you have doubts about the plugin’s usability, before purchasing, you can try the subscription model for the plugin.
For example, if you subscribe to a plugin for one day you’ll end up being charged for this plugin fee / 31.
Hope this answer helps. If there is anything else that we can help with about our products, please let us know
Regards,
Rapid Dev Support Team
Thanks so much for your reply, and good points re front-end.
The plugin preview shows the contents super-quickly, which is great! I didn’t see the ‘Save to Database’ button, so around how long would it take to save down ~600 2MB PDFs (can it unzip PDFs?) to the Bubble DB? Any risks of the workflow timing out - should I batch anything?
Thanks again!
Hi @jonathan16, thanks for your questions.
- no risks of workflow timing out, because the process of uploading is related to the browser, so it will keep running till the tab is open and Bubble can upload files.
- there is no button to save to the database, but there is an action to this plugin (Upload files to Bubble) that can be triggered after the content from the zip file is unzipped and you have a list of files.
- ~600 2MB file uploads really depend only on two factors - user internet speed, and bubble upload speed, which is great after all.
Hope this answers your question Drop a message if there is anything else that we can help with.
Regards,
Rapid Dev Support Team