Uploading Files to OpenAI /files endpoint

Hey there @andre-ani, I'm not sure how you've got this to work. I get the whole REST API thing, and basically did the same as you did on the screenshot.

Where I'm lost is the siteDataForm thing. Is it a component? A query? I've tried a few things in that file key/value input:

  • the file dropper component and the file input component: their value is an array of objects, and the file content is only available as base64, which doesn't work
  • a Retool Storage ressource query, set to "Get contents of a file". Same as for the file dropper, the query data is simply an object with a few metadata and the base64Data key.
  • converting the base64 string to a File object and using this in the file value input, and I've got a weird error out of it (kind of expected as this is really fat-fetched).

Could you help me out please?