How to upload files at entry creation with the Upload Plugin?

I managed to convert my request to a form data instead of a json body, now I need to figure out the format in which it wants each form data entry, I’m trying to decipher this tip from the docs

If you want to upload files for a repeatable component, you will have to specify the zero-based index of the item you want to add the file to, using the following syntax: files.my_component_name[the_index].attribute_name. For instance, if you put 3 components and the file is for the second one, the index will be 1.

really confusing