I’m trying to create my first plugin and it’s not easy for me !
Firstly my code work on my sdk but the hard thing for me it’s get my code work on bubble !
My pluging send a request to a website to get data and put it in a file then this file should be save in the database ! So the first part is done, but i still don’t understant how to inject my file in my database with the plugin editor.
Bellow you can see how i do that, i’m still beginner on bubble It’s quiete hard to find a tutorial.
There is something I don’t understand. How should I connect my database to my pluggin ? Where is connection ?
You can’t access the file system from server side actions. That means you cannot read or write files from here. What you can do is generate a file as a Data URI (it’s basically files as text) but that adds 30% to your file size. If it’s a basic file like .txt or .csv then you can just return the file as a string in that case, that won’t increase the file size.
Yes you’re correct, there is a 6MB limit (which really sucks). I’ve brought this up with some higher ups on the bubble plugin team before, they’re aware of the limits of what plugins can do:
6MB maximum
30 second time limit
Their response to me was to just do the work on the client side…