How do I create a query that uploads a file to a REST api using file path?

I am trying to upload a file to GraphCMS using the guide here: Assets | GraphCMS

... but I can't figure out how to create a query in Retool that works. I made a REST API resource with the correct Authorization header, set the action type to POST and body to Form Data with a fileUpload key and the value of a File Input as the value.

Anyone care to help? :S


Hey there :wave:

Here's our documentation on connecting to a GraphQL resource in case you haven't seen it yet. Are you seeing any errors in this process?