# Uploading photos to imgBB via API

**URL:** <https://community.thunkable.com/t/uploading-photos-to-imgbb-via-api/1671750>\
**Category:** Questions about Thunkable X\
**Created:** [January 13, 2022, 2:24pm UTC](https://community.thunkable.com/t/uploading-photos-to-imgbb-via-api/1671750 "2022-01-13T14:24:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balanced\_Kitchen](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@Balanced\_Kitchen](https://community.thunkable.com/u/Balanced_Kitchen)\
**Post date:** [January 13, 2022, 2:24pm UTC](https://community.thunkable.com/t/uploading-photos-to-imgbb-via-api/1671750/1 "2022-01-13T14:24:11Z")

</div>

Hello, can anyone help me with organizing the API request. I try to upload a photo to imgBB using their API, but it always fails.

> **[Upload Image — Free Image Hosting](https://api.imgbb.com/)**
>
> Free image hosting and sharing service, upload pictures, photo host. Offers integration solutions for uploading images to forums.

---

<div class="post-metadata">

**Author:** ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)\
**Post date:** [January 13, 2022, 2:33pm UTC](https://community.thunkable.com/t/uploading-photos-to-imgbb-via-api/1671750/2 "2022-01-13T14:33:26Z")

</div>

No one here is a magician so please post screenshots of what you have tried.

---

<div class="post-metadata">

**Author:** ![Balanced\_Kitchen](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@Balanced\_Kitchen](https://community.thunkable.com/u/Balanced_Kitchen)\
**Post date:** [January 13, 2022, 2:43pm UTC](https://community.thunkable.com/t/uploading-photos-to-imgbb-via-api/1671750/3 "2022-01-13T14:43:53Z")

</div>

will this help?

 ![Без име](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/4/94b72e31f5fdd7aaf45d70d08887d47187d1c790.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 13, 2022, 3:25pm UTC](https://community.thunkable.com/t/uploading-photos-to-imgbb-via-api/1671750/4 "2022-01-13T15:25:31Z")

</div>

When you do an API call, you need to check the value of the green `error` block. Set a label to that block and then tell us what appears. If there is no error, then what is the value of the green `response` block?

Also, you’re sending the API the image as a text string but I’m not sure the green `photo` block is formatted as text. So it may not work that way. The documentation states the image must be:

> A binary file, base64 data, or a URL for an image. (up to 32 MB)

I think there’s a block that will convert the image to Base64. Is this in the newer Drag and Drop (DnD) interface?

Is there a reason you’re not using Cloudinary for image hosting since it’s API connection is already built-in to Thunkable?

---

<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:** [January 13, 2022, 7:18pm UTC](https://community.thunkable.com/t/uploading-photos-to-imgbb-via-api/1671750/5 "2022-01-13T19:18:07Z")

</div>

> [@tatiang](#):
>
> I think there’s a block that will convert the image to Base64. Is this in the newer Drag and Drop (DnD) interface?

This block was removed from the list.

---

<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:** [April 13, 2022, 7:18pm UTC](https://community.thunkable.com/t/uploading-photos-to-imgbb-via-api/1671750/6 "2022-04-13T19:18:23Z")

</div>

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