First, according to your screenshot, your are running a client script and not server script.
You cannot use ACTION to do that directly in server script. You need to send the file to the Bubble file API.
In Client side script, you can use context.uploadContent() function (check doc)
Finally, in element this is done with instance.uploadFile or with context too.
Thanks @Jici this was really helpful - and you were correct, I was running a client script not a server script (silly mistake on my part).
If I use the context.uploadContent() function in my client script, any idea what’s the best way to then access the created URL?
I’ve seen suggestions elsewhere on forum to use an exposed state to store the URL, but I don’t think that will work if I’m running a client script (as I won’t have access to the “instance” property)?
There’s no way in client script to return value. You have two options: use element and return in a state the url of the uploaded file or switch to server side script to return the url in returned value
I realise this is veering away from my original query, but any idea why I might be getting this message? Do I need to configure something with AWS S3 perhaps?
Thanks for the post @doug.burden - unfortunately I’m not sure it’s quite what I’m looking for.
To provide more detail - I have uploaded the below files to the bubble database using my plugin - you can see the associated URL in the bottom-left hand corner of the image.