# How to save a file from a URL on backend workflow

**URL:** <https://forum.bubble.io/t/how-to-save-a-file-from-a-url-on-backend-workflow/126182>\
**Category:** APIs\
**Created:** [December 17, 2020, 3:35am UTC](https://forum.bubble.io/t/how-to-save-a-file-from-a-url-on-backend-workflow/126182 "2020-12-17T03:35:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rfuentesd](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@rfuentesd](https://forum.bubble.io/u/rfuentesd)\
**Post date:** [December 17, 2020, 3:35am UTC](https://forum.bubble.io/t/how-to-save-a-file-from-a-url-on-backend-workflow/126182/1 "2020-12-17T03:35:53Z")

</div>

Hi community, Im building an app that receives a API post message with a url with a PDF file, but that PDF file expires after 10 minutes. I need to be able to copy this file into the bubble database, but right now is just assigning the url to the file field not creating a new file.

Any ideas how to achieve this?

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [December 17, 2020, 4:17am UTC](https://forum.bubble.io/t/how-to-save-a-file-from-a-url-on-backend-workflow/126182/2 "2020-12-17T04:17:41Z")

</div>

if you have set the type of the field to be “file” (when you receive the POST message, be sure to set the PDF parameter to be of type file) and in your DB you are using a file type too, use 'saved to s3

---

<div class="post-metadata">

**Author:** ![rfuentesd](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@rfuentesd](https://forum.bubble.io/u/rfuentesd)\
**Post date:** [December 17, 2020, 5:30pm UTC](https://forum.bubble.io/t/how-to-save-a-file-from-a-url-on-backend-workflow/126182/3 "2020-12-17T17:30:03Z")

</div>

You are a genius! I didnt know there was this saved to s3 option! I tried so many workarounds and it was there all along, thanks for the tip!
