How can I upload multiple files at once file Retool Storage query? My files are selected via a file dropzone component. The Storage query has an "Upload file" action but it only uploads 1 file at a time. I confirmed in Retool Storage only 1 file is uploaded via the resource query even when multiple are selected.
Hello!
One thing you can try is to create a Workflow which has a loop block to process an array sent to it from the App's dropzone component. The app would have the Import Workflow resource and send the value of the component as the body. The workflow should then be able to iterate over the array and upload each file.
Here is an example workflow call processing an array and mapping back a text response:
ETA:
You could also (probably more ably) write a JS Query that triggers the Retool Storage upload query for each member of the dropzone array.
1 Like
What’s the API to trigger the storage resource query via JS?
await yourRetoolStorageQueryName.trigger()
Awesome, thanks!