OK - slowly dawning on me that I have previously misunderstood how bubble thinks about files, and why it doesn’t know how to do what I want.

First - bubble thinks about files primarily as a URL reference to it on a 3rd party service, and has it’s own S3 service to help this.

To first get it onto the 3rd party service we can use the bubble file uploader services which can store on Bubble’s S3 service, or use any other storage mechanism that ultimately returns a URL.

So, when we need to ‘copy’ a file, bubble is not thinking that IT will move a file from one place to another. It CAN provide the URL of the original file, but it CAN NOT save a new one - not without going back through the uploader.

In our case, we want to use a workflow to clone a file, so we’d need to use a API or something to make a copy of the file and store it somewhere else - without (and this is the tricky bit) leaving a reference to the original file unencrypted within the resultant URL (e.g. cloudinary requires the original URL to be within the URL, so the end user could still by-pass the cloudinary URL and go direct, which is what we’re trying to avoid).

If anyone would like to correct me on this, please do! :smiley:

2 Likes