We send the fileContentURL in an email as described in this topic PDF size too big for email. Optimizing file size
However after some time, about 24 hours, the link is somehow unauthenticated with the error message:
According to your docs these files should be public if you know the URL.
The link is added in the HTML like this
Bug or am i missing something?
Edit: i see now that the URL contains this param: ?GoogleAccessIdfirstname.lastname@example.org&Expires=1701808031
Which i assume is the source. So how do i remove that? Ps this is sent from an unauthenticated app.
We see how one would assume that the links are public without an expiry date. However, the fileContentURLs are signed and expires after 10-12 hours. In your case, ticking off the “Public”-checkbox when creating the files will allow access beyond these first 10-12 hours.
This may be irrelevant, but the URLs belonging to the Resource Files in Create are public without an expiry date.
Let us know if this helps!
Ah, we are using the generate PDF file action node. I dont see that toggle there. Is there an easy way to swap to create file object? Does the margin and formatting transfer well to PDF including these settings?
I’ll create a challenge for adding the public-checkbox on the Generate Document-action node. But until that is implemented, you could use implement a workaround where you use a Create File Object with URL as Source Type and choose the File Content URL for the PDF that you earlier created.
Let us know if this works!
Thank you, that works great and nice with the challenge on generate file!