[Feature request] Select multiple Multipart files in one parameter
- Insomnia Version: 6.6.2 (6.6.2.2932)
- Operating System: macOS Mojave 10.14.6 (18G87)
Details
I am trying to create a POST request with Multipart Form Body and uploading multiple files in the same key/value pair. Insomnia doesnt seem to allow me to select multiple files. I could successfully do it in another REST Client. Is this a limitation or am I doing it wrong?
Sample curl command :
curl -X POST \
<url> \
-H ‘cache-control: no-cache’ \
-H ‘content-type: multipart/form-data; \
-F =@<file1-location> \
-F =@<file2-location> \
-F =@<file3-location>
Your Curl command is sending three files with no name for each. You can do the same thing in Insomnia like this:

Hello @gschier, how do I do this using GraphQL? Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Your Curl command is sending three files with no name for each. You can do the same thing in Insomnia like this:
Is it possible to send this files in one variable?
To upload files in one variable

Sorry if I allow myself @JuricT , but the correct way is:

Thanks
I think this might depend on the server-side technologies used. I'm using Express.js and multer to handle multipart/form-data requests. The only format that doesn't induce MulterError: Unexpected field is multiple entries with the same name without any brackets.

@weeix your way is right when useing express.js and multer!
@weeix It works perfectly with Spring also

Multipart[] or File Array can be called this way using the same attribute name in insomnia.
@weeix It works perfectly with Spring also
Multipart[] or File Array can be called this way using the same attribute name in insomnia.
This is also working fine for me.

For the 3 people that use Insomnia to test their APIs in Go, this works for me.
Shouldn't we have the ability to allow for multiple file section? It is a bit annoying to have to use the same key and keep selecting each file for it. We can just do multi file selection.
Sorry, I appreciate this is an open-source tool and I am grateful for the options already provided by Insomnia. However, manually selecting files makes no sense when one needs to send 1000 files??? In addition, multi-file selection is possible in Postman so why should we not make this possible in Insomnia?
I face error when i try to upload multiple file in insomnia, i am using multer and express.js. I have set multer().array('upload',20). But i am facing MulterError: Unexpected field.
Postman solve this perfect. 11 Files, one line. I use Postman for file-upload until Insomnia work out a similar solution. For my other endpoints Insomnia work great. Its less verbose and easier for hobby APIs. In my webdev course we learned that the human eye is most comfortable focusing on 7 items at once. I think Postman missed that memo.
