# File Content link expires

**URL:** <https://community.appfarm.io/t/file-content-link-expires/901>\
**Category:** Ask the community\
**Tags:** file-storage\
**Created:** [December 6, 2023, 11:14am UTC](https://community.appfarm.io/t/file-content-link-expires/901 "2023-12-06T11:14:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sondre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sondre/32/105_2.png) [@Sondre](https://community.appfarm.io/u/Sondre)\
**Post date:** [December 6, 2023, 11:14am UTC](https://community.appfarm.io/t/file-content-link-expires/901/1 "2023-12-06T11:14:39Z")

</div>

Hi,

We send the fileContentURL in an email as described in this topic [PDF size too big for email. Optimizing file size](https://community.appfarm.io/t/pdf-size-too-big-for-email-optimizing-file-size/781/1)

However after some time, about 24 hours, the link is somehow unauthenticated with the error message:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/5a04829eef0b5bcdf58cc2a9df826c55bea86641.png)

According to your docs these files should be public if you know the URL.

The link is added in the HTML like this

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/838937ca2d9a318ee92b146362add9bbfcdf3de7.png)

Bug or am i missing something? 🙂

Edit: i see now that the URL contains this param: ?GoogleAccessId=data-service@appfarm-187305.iam.gserviceaccount.com&Expires=1701808031  
Which i assume is the source. So how do i remove that? Ps this is sent from an unauthenticated app.

---

<div class="post-metadata">

**Author:** ![Shahitha](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/shahitha/32/66_2.png) [@Shahitha](https://community.appfarm.io/u/Shahitha)\
**Post date:** [December 6, 2023, 1:36pm UTC](https://community.appfarm.io/t/file-content-link-expires/901/2 "2023-12-06T13:36:29Z")

</div>

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](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/cb747cf18a61c5d686ed61b8dc07a15abf37cdba.png)

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!

---

<div class="post-metadata">

**Author:** ![Sondre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sondre/32/105_2.png) [@Sondre](https://community.appfarm.io/u/Sondre)\
**Post date:** [December 6, 2023, 2:24pm UTC](https://community.appfarm.io/t/file-content-link-expires/901/3 "2023-12-06T14:24:48Z")

</div>

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?  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/692d1eec90b80ba3de2c77716ebbb5c89939be87.png)

---

<div class="post-metadata">

**Author:** ![Shahitha](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/shahitha/32/66_2.png) [@Shahitha](https://community.appfarm.io/u/Shahitha)\
**Post date:** [December 7, 2023, 8:42am UTC](https://community.appfarm.io/t/file-content-link-expires/901/4 "2023-12-07T08:42:23Z")

</div>

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](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/445383aa0d64e26ac520591d6763e66d7ce8be83.png)

Let us know if this works!

---

<div class="post-metadata">

**Author:** ![Sondre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sondre/32/105_2.png) [@Sondre](https://community.appfarm.io/u/Sondre)\
**Post date:** [December 7, 2023, 1:23pm UTC](https://community.appfarm.io/t/file-content-link-expires/901/5 "2023-12-07T13:23:42Z")

</div>

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