File upload to server using REST - POST - Form Data

Hey @davidl!

This is definitely a "bug"/feature that came with the new file component. We're currently speaking in this thread: http://community.retool.com/t/uploading-files-fails-with-the-new-components/7106

but for discoverability/anyone viewing this thread, the issue is that the metadata and base64 of the image are separated once uploaded. The current workaround is to use something like this to re-assemble the two:

{{ {...fileButton1.files[0], "data": fileButton1.value[0] } }}
4 Likes