# Photo from camera can't upload to cloudinary

**URL:** <https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890>\
**Category:** Questions about Thunkable X\
**Tags:** cloudinary, beginner\
**Created:** [August 9, 2022, 9:23am UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890 "2022-08-09T09:23:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tekpensanggu](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@tekpensanggu](https://community.thunkable.com/u/tekpensanggu)\
**Post date:** [August 9, 2022, 9:23am UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/1 "2022-08-09T09:23:02Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/d/4d06c23623de9dbfb805ecee2ee0731ab8d93d1c.png)  
Can someone please help me, how i wanna it works are :

1. I camera button, then camera pop up, and i take a photo
2. Background of camera button changed to taken photo
3. When i clicked FSU\_Button it will send photo i already taken to cloudinary

But i check on cloudinary, there’s no new photo, it didn’t uploaded, is my code wrong? i use drag&drop

Sorry for my bad english, this is first time i use thunkable

---

<div class="post-metadata">

**Author:** ![tekpensanggu](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@tekpensanggu](https://community.thunkable.com/u/tekpensanggu)\
**Post date:** [August 9, 2022, 9:26am UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/2 "2022-08-09T09:26:16Z")

</div>

@muneer can you help me with the code? i already see your web api based to upload canva to google drive, but i can’t use it for uploading picture

So i confused, is it my code wrong? Or maybe can’t work on android.

Please help me as soon as possible. Thank you sir

---

<div class="post-metadata">

**Author:** ![ioannisroungeris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannisroungeris/32/109459_2.png) [@ioannisroungeris](https://community.thunkable.com/u/ioannisroungeris)\
**Post date:** [August 9, 2022, 11:05am UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/3 "2022-08-09T11:05:58Z")

</div>

Hello @tekpensanggu ,  
You need to add the Media\_DB component ([Media DB by Cloudinary - Thunkable Docs](https://docs.thunkable.com/media-db)) and then the code must be something like this one:

 ![Στιγμιότυπο οθόνης (937)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/d/6ddd04742ca634bf87d631e6e73ffaa4d0fef91a.png)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [August 9, 2022, 12:17pm UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/4 "2022-08-09T12:17:35Z")

</div>

@ioannisroungeris for drag and drop you just need the upload block

@tekpensanggu - have you added your Cloudinary details to your project settings? Otherwise it will just be uploaded to our account 😂

---

<div class="post-metadata">

**Author:** ![ioannisroungeris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannisroungeris/32/109459_2.png) [@ioannisroungeris](https://community.thunkable.com/u/ioannisroungeris)\
**Post date:** [August 9, 2022, 12:25pm UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/5 "2022-08-09T12:25:37Z")

</div>

@domhnallohanlon I didn’t notice that he was using drag and drop  
but the idea is the same, on the upload block he needs to put the button’s background picture as a file

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 10, 2022, 8:37am UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/6 "2022-08-10T08:37:35Z")

</div>

> [@tekpensanggu](#):
>
> So i confused, is it my code wrong? Or maybe can’t work on android.

My example does not use `Cloudinary`. So it will have different codes.

For your code to work, you need to fill in these fields in the project settings section

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/1/51e776089fb45e2263f377b17204e8b44a91cfc6.png)

---

<div class="post-metadata">

**Author:** ![tekpensanggu](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@tekpensanggu](https://community.thunkable.com/u/tekpensanggu)\
**Post date:** [August 10, 2022, 9:24am UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/8 "2022-08-10T09:24:47Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/2/4291d7e2d33b975273ddc7ea0f40c84169f25fec.png)

Already used but still didn’t work, can you make a tutorial use Web API for uploading picture taken by camera to google drive?

---

<div class="post-metadata">

**Author:** ![tekpensanggu](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@tekpensanggu](https://community.thunkable.com/u/tekpensanggu)\
**Post date:** [August 10, 2022, 9:25am UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/9 "2022-08-10T09:25:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/2/4291d7e2d33b975273ddc7ea0f40c84169f25fec.png)

---

<div class="post-metadata">

**Author:** ![tekpensanggu](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@tekpensanggu](https://community.thunkable.com/u/tekpensanggu)\
**Post date:** [August 10, 2022, 9:28am UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/10 "2022-08-10T09:28:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/a/ca731f838f9e422c98578ba2cfe51c07b88f0b43.png)  
Drag and drop had different way to use, Last time i use snap to place and didn’t had problem. But when i use drag & drop, the picture i taken from camera didn’t uploaded to cloudinary.

---

<div class="post-metadata">

**Author:** ![tekpensanggu](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@tekpensanggu](https://community.thunkable.com/u/tekpensanggu)\
**Post date:** [August 10, 2022, 10:17am UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/11 "2022-08-10T10:17:17Z")

</div>

@ioannisroungeris @domhnallohanlon

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/a/fa0fe8a1d615eec66dc68acd3d4175e343dfdcb7.png)

After some change of uploading photo code, it can be worked. But now the code of create row in google sheet didn’t work, is there any wrong in my code? or maybe code for create row in google sheet and code for uploading photo didn’t supposed to be in one page?

---

<div class="post-metadata">

**Author:** ![ioannisroungeris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannisroungeris/32/109459_2.png) [@ioannisroungeris](https://community.thunkable.com/u/ioannisroungeris)\
**Post date:** [August 10, 2022, 12:22pm UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/12 "2022-08-10T12:22:33Z")

</div>

It can be on one page.  
I don’t see the whole app so I don’t know exactly the problem.  
Where do you set the stored variable date?

and also what do you mean “google sheet didn’t work” ?  
For example, it didn’t create a new row or some values are missing

If it didn’t create a new row, I think the problem is that one or more text inputs are empty.  
So you need to add a value before you click FSU Button

---

<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:** [November 8, 2022, 12:22pm UTC](https://community.thunkable.com/t/photo-from-camera-cant-upload-to-cloudinary/1992890/13 "2022-11-08T12:22:50Z")

</div>

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