# Upload file to Fibery in Action button

**URL:** <https://community.fibery.io/t/upload-file-to-fibery-in-action-button/1664>\
**Category:** API & Programming\
**Created:** [May 28, 2021, 11:10am UTC](https://community.fibery.io/t/upload-file-to-fibery-in-action-button/1664 "2021-05-28T11:10:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [May 28, 2021, 11:49am UTC](https://community.fibery.io/t/upload-file-to-fibery-in-action-button/1664/2 "2021-05-28T11:49:10Z")

</div>

If you know how to do it with the API, then you can do it with an action button using a script.  
See here for how to execute any API command from an action button:

> [@Command methods for button, and/or token availability in context](https://community.fibery.io/t/command-methods-for-button-and-or-token-availability-in-context/1035/3):
>
> Nice! I can’t find executeSingleCommand anywhere in the API docs, but I assume the IntelliSense in the button editor will help and/or that it takes the entire payload that would normally go in to body? The other stuff isn’t a huge deal for me, so no worries about that. slight_smile EDIT: Indeed it shows up in the IntelliSense, and it takes the body payload—except you omit the wrapping array and leave it with 1 command (as the method name suggests). For other people’s reference, here’s an ex…

---

_[View the full topic](https://community.fibery.io/t/upload-file-to-fibery-in-action-button/1664)._
