question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature request] Select multiple Multipart files in one parameter

See original GitHub issue
  • 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>

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

28reactions
JuricTcommented, Mar 16, 2020

To upload files in one variable Снимок экрана 2020-03-16 в 11 20 44

26reactions
weeixcommented, Apr 13, 2020

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.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Upload Multiple Files In A Single Request
I'm posting content to the server in a multipart/form-data request. and the data I'm posting contains multiple parameters including a file ...
Read more >
Uploading and copying objects using multipart upload
Multipart upload allows you to upload a single object as a set of parts. Each part is a contiguous portion of the object's...
Read more >
File Uploads and Multipart Requests
Under Parameters, click + Add Multipart Form Parameters. Name your file parameter (required), and click the dropdown next to it to select the...
Read more >
File Upload
You can have several named file parameters, each defined individually: ... However, uploading an arbitrary number of files (an array of files) is...
Read more >
Uploading multiple files - Manual
In HTML file upload fields, it is possible to upload an entire directory with the webkitdirectory attribute. This feature is supported in most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found