You’re trying to run it AFTER, and that’s an extra step, plus it looks like you’re confusing the function a bit
Get the initial (external) PDF URL (Step 1), and use the :saved to S3 operator (Step 2) to save it to Swipefile “File” field.
Remove the “URL” ending of the operator, and you should be good - the " :saved to s3" should take the external file and save it to your Bubble app s3 bucket.
As you can see from the first picture, the generated pdf is contained in ‘Files’>‘Url’ and ‘Url’ evaluates to a list of files.
So I also tried writing “:last item:saved to S3” after ‘Url’ to see if it might be a problem with saving a list of files instead of one single file but it still gives me the same error.
Do you know what might be causing this error?
Thanks again for your help Vlad, it’s greatly appreciated
Nope, but please check out your console output in the browser - that may give some more info on what exactly is the issue\exception (if you’re on View>Developer>Javascript Console)
Hi, did you ever manage to sort this out? I am working on the same thing right now (trying to create a preview for a file); I can create the preview, and the link, but I didn’t yet manage to automatically download and save it to my database.