New Plugin - Generate and Download Files

Hey everyone,
we’ve just released a new plugin: Generate and Download Files.

This plugin allows you to generate and download files within your bubble application! You can generate .txt , .json ,.html , .svg files and more. Furthermore, all generated files will be saved within your Bubble application for you to use. You can also specify if the files should be automatically downloaded or just saved. Everytime a new file is generated an Event is triggered.

For a demo please visit: https://pluginsanticode.bubbleapps.io/generate

Plugin page: https://bubble.io/plugin/generate-and-download-files-1586515622229x314345878862430200

For a demo of this plugin within the editor please visit: https://bubble.io/page?type=page&name=generate&id=pluginsanticode&tab=tabs-1

Cheers,
Noel

7 Likes

Hi, does the app plan need to be pro or above for the plugin to work?

1 Like

Hey, you need at least the Personal plan to use this plugin.

Cheers,
Noel

Got it, thank you.

Hi, would it be possible to update the generated file so that I always refer to the same url ?

1 Like

Hi,

no unfortunately that won’t be possible as once the file is generated, there is no way for us to access the file and modify it.

Any tips for saving the file directly after it is generated? The pictured workflow results in an “XML Download” object with a blank “File” field. However, if I run it subsequent times, the file field will be populated.

Please use the event that is triggered for that.

„Everytime a new file is generated an Event is triggered. You can use this event to make add the generated file to a thing within your application. „

2 Likes

Ah, yep, good call! Thanks for the quick reply!

Got another one for you:

Would it be possible to add the ability to create & save files via a backend workflow? I understand that the current method of using the GenerateFiles element doesn’t work with backend workflows, but having the option would be great for automatically generating files on a cadence, which is what we’re going for.

Hey,

unfortunately that’s not possible currently , but it should be doable. We’ll look into that in the future :+1:

1 Like

Hi, why is it that only the .txt file opens? If I use any other extension it actually saves as the right file type but when I go to open either a .doc or a PDF I get a message saying “Failed to load PDF Document” or “Pages couldn’t read the file.”

This happens in both my app and in your demo.

It does not work on mobile or is there anything to consider?

Hi @Anticode I am facing issue:


image

I notice that only in debugger step by step it will work. but if running full speed it does not work.

Things I have tried:
adding delays in front and behind the generation workflow but didnt work

thank you for letting us know.
Can you check if the file is being uploaded at all? Does it work if you save only the uploaded File’s URL as a text?

Kind Regards,

Hey Ryanck - Did you find a solution for downloading a file on mobile?

thanks

Have a problem with Cyrillic text in generated HTML file. Seems like it can’t be coded in a right way. Getting something like that, because of automatically added “charset=windows-1252” in meta tag.
Кириллица должна распознаваться
Is there any solution? Could you remove this part from generated tags?