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.
-
Upload the new file privately
-
delete the old file
-
Link the new file to our database object:
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?