How to use formdata to upload an array of files

Hi awesome Retool Community!

I am trying to upload an array of files, using a form data resource.
The problem is that Retool is converting my array into a string. This seems to be a regression, because I used to be able to upload an array with multiple files, using the form data body, when I first tried this in October of 2024.

image

My API expects an array of files instead of a string. I tried writing my own fetch query, but for that I would need to provide an auth token in the header, which I am also not able to do.

For reference - postman allows me to post multiple files using form-data

Any help is appreciated!

1 Like

Following as I'm facing the exact same issue.

It just magically began to work after I removed an empty header row from the query. Not sure if that was it?
I also changed the API, so that the request body only contained a files value, and nothing else.
image