File Content link expires


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? :slight_smile:

Edit: i see now that the URL contains this param: ?
Which i assume is the source. So how do i remove that? Ps this is sent from an unauthenticated app.

Hi Sondre!

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.

Screenshot 2023-12-06 at 14.35.41

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?

Hi again.

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.

Screenshot 2023-12-07 at 08.57.29

Let us know if this works!

1 Like

Thank you, that works great :slight_smile: and nice with the challenge on generate file!

1 Like