# API Post Image, HELP!

**URL:** <https://forum.bubble.io/t/api-post-image-help/257382>\
**Category:** APIs\
**Created:** [April 13, 2023, 6:24pm UTC](https://forum.bubble.io/t/api-post-image-help/257382 "2023-04-13T18:24:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joaoanzolim](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@joaoanzolim](https://forum.bubble.io/u/joaoanzolim)\
**Post date:** [April 13, 2023, 6:24pm UTC](https://forum.bubble.io/t/api-post-image-help/257382/1 "2023-04-13T18:24:00Z")

</div>

I’m trying to setup a Post API, to upload Images in Base64 to server. Follow:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/e/8ea2a2c71274e653bb54a1bd54a9e6b35192b4ff.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/7/f7f92ed114fd730d01ad9d1c44f477c09075dc27.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/7/5747e070fe708a5eb2e6a8625c292b36515d2579.png)

It returns:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/0/60ed3430eebe1ae5f5b649b335084417569eae2c.png)

---

<div class="post-metadata">

**Author:** ![joaoanzolim](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@joaoanzolim](https://forum.bubble.io/u/joaoanzolim)\
**Post date:** [April 13, 2023, 6:43pm UTC](https://forum.bubble.io/t/api-post-image-help/257382/2 "2023-04-13T18:43:42Z")

</div>

Found a solution in this topic:

> [@Trying to use api to upload file](http://forum.bubble.io/t/trying-to-use-api-to-upload-file/68910):
>
> Hi, I’m trying to upload a file with the bubble API. I’ve a data Type called ‘Document’ with a field ‘document\_file’ which is a field of type file. I’m doing a post request with postman on the data type api and giving a json object as a value for the key ‘document\_file’. Here is my json object : {"filename":"pixel.png", "contents":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==","private":false} But each time the response is "body": { "sta…
