tomas / needle

Nimble, streamable HTTP client for Node.js. With proxy, iconv, cookie, deflate & multipart support.

Home Page:https://www.npmjs.com/package/needle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Files Upload Renames Input Field

zotakk4o opened this issue · comments

Hi Team, there seems to be a problem sending multiple files at the same field(part) name.

var data = {
images: [{
file: 'linux.png',
content_type: 'image/png'
}, {
file: 'linux(1).png',
content_type: 'image/png'
}]
}
Request with this data will be sent as:
{
images[0]: ...,
images[1]: ...
}

Can you please inform me on whether this can be changed?