# Pdf files to cloud

**URL:** https://community.thunkable.com/t/pdf-files-to-cloud/2483678
**Category:** Questions about Thunkable X
**Created:** [June 26, 2023, 6:04pm UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678 "2023-06-26T18:04:39Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![hendrikbez](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hendrikbez](https://community.thunkable.com/u/hendrikbez)
#### Post date: [June 26, 2023, 6:04pm UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/1 "2023-06-26T18:04:39Z")

</div>

is there a way to safe a pdf file from app to cloudinary and get link from it then save it into google sheet, as we can do with images

---

<div class="post-metadata">

### Author: ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)
#### Post date: [June 27, 2023, 1:37am UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/2 "2023-06-27T01:37:11Z")

</div>

@hendrikbez, i think this will must help you:  
[Paged and Layered Media | Cloudinary](https://cloudinary.com/documentation/paged_and_layered_media#:~:text=You%20can%20upload%20PDF%20files,to%20images%2C%20and%20generate%20thumbnails).

---

<div class="post-metadata">

### Author: ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)
#### Post date: [June 27, 2023, 2:17am UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/3 "2023-06-27T02:17:21Z")

</div>

Here is a demo  
Just upload the pdf normally, as you upload images to cloudinary,  
And you can also change the extension of pdf from .pdf to .jpg or any other img extension and upload it to cloudinary to get a thumbnail of your pdf of your desired page.

 ![Screenshot (1578)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/b/3bfc89cc06e395f5cf5ba104d1bd7fc89c6c00e6.png)  
 ![Screenshot (1579)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/c/6c1fc29942534a0a2eec961688c01a80fb230a41.png)  
To know more about cloudinary pdf : [Paged and Layered Media | Cloudinary](https://cloudinary.com/documentation/paged_and_layered_media#:~:text=You%20can%20upload%20PDF%20files,to%20images%2C%20and%20generate%20thumbnails)

---

<div class="post-metadata">

### Author: ![hendrikbez](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hendrikbez](https://community.thunkable.com/u/hendrikbez)
#### Post date: [June 27, 2023, 4:24am UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/4 "2023-06-27T04:24:59Z")

</div>

Thank you, will look at this, when I am at home again.

---

<div class="post-metadata">

### Author: ![hendrikbez](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hendrikbez](https://community.thunkable.com/u/hendrikbez)
#### Post date: [June 27, 2023, 12:42pm UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/5 "2023-06-27T12:42:39Z")

</div>

@ak_coder  
I have done this, but it show undefined as url.  
I did allow delivery of PDF and ZIP files in [cloudinary.com](http://cloudinary.com)  
his is my block for the pdf  
 ![Screenshot_61](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/2/727f55e29d41d99eeeaa0bfba7ee2926fd988df8.png)

---

<div class="post-metadata">

### Author: ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)
#### Post date: [June 27, 2023, 2:48pm UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/6 "2023-06-27T14:48:33Z")

</div>

@hendrikbez, Can u please also tell, what error you see by error block  
And, Can u please share the link of your app or more screenshots.

---

<div class="post-metadata">

### Author: ![hendrikbez](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hendrikbez](https://community.thunkable.com/u/hendrikbez)
#### Post date: [June 27, 2023, 3:30pm UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/7 "2023-06-27T15:30:52Z")

</div>

@ak_coder

I only getting undefined, and when run from app getting “Something has gine wrong. Check your blocks and reset this page”.  
link to my app, "voegby is the screen

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

---

<div class="post-metadata">

### Author: ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)
#### Post date: [June 27, 2023, 3:49pm UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/8 "2023-06-27T15:49:08Z")

</div>

Ok, i finally got your error, you have to recheck you cloud name, that you entered  
I also told you earlier to check error  
_ **the error is - Invalid cloud\_name defaudzzpcl61hlt** _  
 ![Screenshot (1590)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/d/ddad01c4e8f1cb7a3c9d4019717d78c516d1e305.png)

Here is the code that i used to see the error

 ![Screenshot (1591)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/2/f2c59889817c7dbddeab8936d0a383dd3a1e227a.png)

If this solve your issue, then please mark this issue as solved

---

<div class="post-metadata">

### Author: ![hendrikbez](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hendrikbez](https://community.thunkable.com/u/hendrikbez)
#### Post date: [June 27, 2023, 4:07pm UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/9 "2023-06-27T16:07:19Z")

</div>

Thank you, now it work when I test it on my pc, but still give undefined on my app in android

---

<div class="post-metadata">

### Author: ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)
#### Post date: [June 28, 2023, 2:59am UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/10 "2023-06-28T02:59:32Z")

</div>

This is very strange, you are correct, i also tested it  
I think this is cloudinary issue

---

<div class="post-metadata">

### Author: ![hendrikbez](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hendrikbez](https://community.thunkable.com/u/hendrikbez)
#### Post date: [June 28, 2023, 3:46am UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/11 "2023-06-28T03:46:10Z")

</div>

Thank you,  
Getting now error “You need to provide a valid media path.” on pdf, but image is working.

Is there any other way to get this pdf to cloudinary to get the pdf link (using android)  
Or can change the etc. to .jpg and then rename it to pdf in the app. then send it to google sheet

---

<div class="post-metadata">

### Author: ![ak\_coder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ak_coder/32/156215_2.png) [@ak\_coder](https://community.thunkable.com/u/ak_coder)
#### Post date: [June 28, 2023, 6:47am UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/12 "2023-06-28T06:47:53Z")

</div>

If you want to rename .pdf to .jpg, then its possible  
You have to use the `replace .pdf text in url to .jpg` block in text section, and then upload this url to cloudinary, to get a thumbnail of your pdf  
And for the android, why its not working, i don’t know, I think it can be a bug, You can flag this issue to get response from thunkable community.

---

<div class="post-metadata">

### Author: ![hendrikbez](https://avatars.discourse-cdn.com/v4/letter/h/f1d935/32.png) [@hendrikbez](https://community.thunkable.com/u/hendrikbez)
#### Post date: [June 28, 2023, 6:53am UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/13 "2023-06-28T06:53:02Z")

</div>

Thank you, will look at the replace block

---

<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: [September 26, 2023, 6:53am UTC](https://community.thunkable.com/t/pdf-files-to-cloud/2483678/14 "2023-09-26T06:53:24Z")

</div>

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