Retool and openai file uploads

I'm trying to use the /files endpoint of the OpenAi integration. I've seen this post (Uploading Files to OpenAI /files endpoint - #6 by Nathan_Desdouits) which says to use the {{ query.data }} from a retool storage query but this isn't working im still getting:
"The browser (or proxy) sent a request that this server could not understand"

The {{ query.data }} contains an object of the file which seems to be what the integration is expecting but it just doesnt seem to work

Sorry I can't reply in that old thread as its closed.

@Nathan_Desdouits is this still working for you? Or does anyone else have a working solution?

Hey @unipro-LeighMason

This works for me with a Retool Storage query:

And POSTing to the /files endpoint like this:

1 Like

Thanks for the info. So you're not using the OpenAI integration and instead creating your own rest call? I'm trying with this integration:
image

And then when using it there's the files endpoint:

Are you able to try that and see if it works for you? If not then it sounds like it's not quite right

Hmm I'm getting the same thing as you - let me check out how we're handling that OpenAPI spec. In the meantime, using the REST API might be best. I'll follow up here once I have an update.