# Tip: Upload base64 encoded file to Xano

**URL:** <https://community.weweb.io/t/tip-upload-base64-encoded-file-to-xano/976>\
**Category:** Tips and Hacks\
**Created:** [August 11, 2022, 6:53am UTC](https://community.weweb.io/t/tip-upload-base64-encoded-file-to-xano/976 "2022-08-11T06:53:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Soenke](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/soenke/32/998_2.png) [@Soenke](https://community.weweb.io/u/Soenke)\
**Post date:** [August 11, 2022, 6:55am UTC](https://community.weweb.io/t/tip-upload-base64-encoded-file-to-xano/976/2 "2022-08-11T06:55:29Z")

</div>

Used the code from @caffeinatedwes as a base, thanks for that!

> [@Upload a file to Xano with custom JavaScript - WeWeb error](https://community.weweb.io/t/upload-a-file-to-xano-with-custom-javascript-weweb-error/951/9):
>
> Thank you for the input, @dorilama. It turns out, the issue wasn’t necessarily the selector, but rather, trying to use the selector within the workflow editor. I recorded a ~2 minute video explaining what happened [here](https://www.loom.com/share/e749a7c2ddf84f97a6f3952d06d0c6fe). It looks like this may be a bug caused by the new workflow editor. thinking If it’s helpful to others, I found setting up quite a few console.log statements along the way really helpful to debug this. I also received help to adjust the code towards the bottom as I received a …

---

_[View the full topic](https://community.weweb.io/t/tip-upload-base64-encoded-file-to-xano/976)._
