tomas / tomas/needle

Multiple Files Upload Renames Input Field

Open
#409 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.6k
Forks
237
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the multipart request serialization entry point for array values and reproduce the request with repeated files; done means multiple files retain the same images field name instead of being emitted as images[0] and images[1].

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.