# Upload a file and send it to an API

**URL:** <https://community.appfarm.io/t/upload-a-file-and-send-it-to-an-api/81>\
**Category:** Ask the community\
**Tags:** web-request\
**Created:** [December 20, 2022, 3:22pm UTC](https://community.appfarm.io/t/upload-a-file-and-send-it-to-an-api/81 "2022-12-20T15:22:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fridtjof](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/fridtjof/32/262_2.png) [@Fridtjof](https://community.appfarm.io/u/Fridtjof)\
**Post date:** [December 20, 2022, 3:22pm UTC](https://community.appfarm.io/t/upload-a-file-and-send-it-to-an-api/81/1 "2022-12-20T15:22:44Z")

</div>

Is it possible to upload a file in the UI and then send it to a file location in another system? I want to send a csv/xlsx to DBFS in databricks.

---

<div class="post-metadata">

**Author:** ![Thomas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/thomas/32/9_2.png) [@Thomas](https://community.appfarm.io/u/Thomas)\
**Post date:** [December 20, 2022, 3:34pm UTC](https://community.appfarm.io/t/upload-a-file-and-send-it-to-an-api/81/2 "2022-12-20T15:34:29Z")

</div>

Yes. First, you have to upload the file to a File Object Class using the action node Create File Object. Then, you can use the Web Request action node to do a POST to an external system using Body Type “form data”. You add your file to the request by data binding the file object to one of the elements in the body content of form data. Here’s an example of such a setup (sending a file to Finn):  
 ![image (11)](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/f9dec5d119ad8c07b64e7a0f1dac37300b1a872c.png)

However, it is important to note that this method is dependent on the recipient API, i.e. it only works if the recipient system understands this way of exchanging data.
