# Sending file via API connector

**URL:** <https://forum.bubble.io/t/sending-file-via-api-connector/150798>\
**Category:** APIs\
**Created:** [May 12, 2021, 12:25am UTC](https://forum.bubble.io/t/sending-file-via-api-connector/150798 "2021-05-12T00:25:55Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![aaronsheldon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aaronsheldon/32/115965_2.png) [@aaronsheldon](https://forum.bubble.io/u/aaronsheldon)\
**Post date:** [May 14, 2021, 5:04am UTC](https://forum.bubble.io/t/sending-file-via-api-connector/150798/9 "2021-05-14T05:04:14Z")

</div>

I would interpret the [documentation](https://manual.bubble.io/core-resources/bubble-made-plugins/api-connector#body-type) on the Bubble API Connector to mean they only support POST Body types of form-data or raw on top of the usual JSON. Your call requires a body type of binary, which is probably not supported by the Bubble API Connector. For files stored on Bubble’s S3 cloud the data is accessible only through Bubble’s “:encoded in base64” [operator](https://manual.bubble.io/core-resources/data/operations-and-comparisons#encoded-in-base64), which is definitely not what your endpoint is expecting.

If you want to send a byte or octet buffer in a POST you will have to write a custom Server Side Action that reads the base64 and buffers it back into bytes and then places the POST call inside of Bubble’s `context.request` [function](https://manual.bubble.io/core-resources/bubble-made-plugins/api-connector#body-type). Which itself exposes the deprecated Node.js request [module](https://www.npmjs.com/package/request).

---

_[View the full topic](https://forum.bubble.io/t/sending-file-via-api-connector/150798)._
