# What's the "content-encoding" header a POST with a base64 image?

**URL:** <https://forum.bubble.io/t/whats-the-content-encoding-header-a-post-with-a-base64-image/18043>\
**Category:** APIs\
**Created:** [September 23, 2017, 4:14pm UTC](https://forum.bubble.io/t/whats-the-content-encoding-header-a-post-with-a-base64-image/18043 "2017-09-23T16:14:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vladlarin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladlarin/32/38367_2.png) [@vladlarin](https://forum.bubble.io/u/vladlarin)\
**Post date:** [January 2, 2018, 7:58am UTC](https://forum.bubble.io/t/whats-the-content-encoding-header-a-post-with-a-base64-image/18043/2 "2018-01-02T07:58:50Z")

</div>

You might want to check this one.

> [@\[SOLVED\] How to upload an image using POST API](http://forum.bubble.io/t/solved-how-to-upload-an-image-using-post-api/8889/18):
>
> Hokay, so, here’s what seems to be working for me: get your file (name and data) isolate and url encode the filename (somefile.jpg) base64 encode the filedata put the filename into array1[filename] put the filedata into array1[contents] put “false” into array1[private] (I haven’t tried making it private and attached to a database thing yet) put that array into array2[file] (I tried changing that but the server stopped accepting it, so apparently it has to be “file”) put anything else you need …

---

_[View the full topic](https://forum.bubble.io/t/whats-the-content-encoding-header-a-post-with-a-base64-image/18043)._
