Converting File to PDF

Hi there,

I am trying to save a pdf to the bubble database from a url. However, when I save it, it just saves as a data file and not a pdf.

Is there something i am doing wrong when saving to S3?

Here’s the workflow for reference:

Hey, as far as I know you can’t save a file from a URL itself. This is because when you continue the expression :saved to S3, it is taking the path that is saved and not the file itself, because later, internally, Bubble can reference this file through the path.

But none of that is lost, you can research and use a little Javascript to create a function that takes a URL and turns it into a file, using Fetch, or maybe some external library.

This topic was automatically closed after 70 days. New replies are no longer allowed.