Direct File Download Link for API Integration?

I’m working to integrate the PDF.co API. I have had similar troubles to other threads in the past, but I think I now understand the underlying issue.

The API requires a direct download URL, if you have one it works without issue. In my use case the file is uploaded to the Bubble database and referenced from there instead of asking the user to paste a URL.

The URL provided by the Bubble database previews the file before allowing it to be downloaded, but the API cannot use that.

Is there a way to generate a link from the database that’s direct to download?

Hey @QIRO :wave:

The url in the Bubble file data type is a direct url where you download the file. Are you sure you are looking at the same url?

Sometimes, you have to append https: to the beginning of the url though. Because it starts with //.....

bdk_512x512 @Huseyin from Flusk | Discover the #1 Security and Monitoring Tool for Bubble

You were absolutley right, thank you.

1 Like