Make File Private using workflow

We tried implementing the API to upload a file privately but somehow the URL of the new file is all broken…

Here is how we setup our API:

Then we did a workflow to take a public file from a database object, re-uploafile it privately, delete the old public file and re-link the new private file with the object.

  1. Upload the new file privately

  2. delete the old file

  3. Link the new file to our database object:
    image

However, in the end we get a URL in the object like this: My first test failed at step 3 I think. Somehow the URL recorded in the database object is: https://bubble.io/“https://ourdomain.com/version-test/fileupload/f1697699989239x249811802206209250/115747.jpeg” (including the quotation marks).

We are not sure as to why we end up with this weird URL. Where did we go wrong?

1 Like