How to use formdata to upload an array of files

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