OpenAPITools / OpenAPITools/openapi-generator

[BUG] [C++][cpp-restsdk] multipart: How to upload multiple files with same form field name per file.

Open
#7,316 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

I want to upload multiple files under same form field name per file using multipart in a single request.
But because of the same form field name, it was taking all the files.
The details are already posted on stackoverflow:
please respond if anyone knows the fix.
openapi-generator-cli version 4.3.1

Contributor guide

Open the contributing guide

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

Start with the linked Stack Overflow report and the multipart behavior in openapi-generator-cli 4.3.1; the issue names no repository file or test. Reproduce the repeated form-field upload case, locate the relevant generated C++ client path, and define a regression test showing that each file is transmitted under the same field name.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, openapi
Domain
api
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.