# Saving .pdf files locally

**URL:** <https://community.thunkable.com/t/saving-pdf-files-locally/2196723>\
**Category:** Questions about Thunkable X\
**Created:** [December 29, 2022, 9:10pm UTC](https://community.thunkable.com/t/saving-pdf-files-locally/2196723 "2022-12-29T21:10:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jozkobachnicekiy](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@jozkobachnicekiy](https://community.thunkable.com/u/jozkobachnicekiy)\
**Post date:** [December 29, 2022, 9:10pm UTC](https://community.thunkable.com/t/saving-pdf-files-locally/2196723/1 "2022-12-29T21:10:27Z")

</div>

Is it possible to save .pdf file from file input (in snap to place, in dd its in the files) between sessions?

Im trying it with this: [Thunkable](https://x.thunkable.com/copy/0e30d24cbf4858c016fb8a44d8235d4c) . Opening the file works fine the first session, but after closing the app and opening it again it fails to work. Is it a bug, it isnt even suposed to work or there is some workaround (preferably withoutconverting to .html)?

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 30, 2022, 11:17am UTC](https://community.thunkable.com/t/saving-pdf-files-locally/2196723/3 "2022-12-30T11:17:30Z")

</div>

However, i have a solution to the problem you are having.

You cannot store a file as such but you can store the URL of the uploaded file and then display it.  
Here is the working logic in this new project i made.

See what I have written inside the project 😃

[https://x.thunkable.com/copy/0e7e5af6bc5a807fe0f828e9ed2daa38](https://x.thunkable.com/copy/0e7e5af6bc5a807fe0f828e9ed2daa38)

---

<div class="post-metadata">

**Author:** ![jozkobachnicekiy](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@jozkobachnicekiy](https://community.thunkable.com/u/jozkobachnicekiy)\
**Post date:** [December 30, 2022, 10:05pm UTC](https://community.thunkable.com/t/saving-pdf-files-locally/2196723/4 "2022-12-30T22:05:13Z")

</div>

This seems to work only when testing it in a web wiever, when im testing it via the mobile app it isnt working (getting error “PDFDocument: stream must have data”) -probably it has something to do with me not being connected to cloudinary (where the block is getting the url from).  
Thanks for help anyways!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 30, 2023, 10:05pm UTC](https://community.thunkable.com/t/saving-pdf-files-locally/2196723/5 "2023-03-30T22:05:39Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
