Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map construction changes when you upload more than one file #263

Open
1 of 4 tasks
lvalladares opened this issue Dec 17, 2023 · 0 comments
Open
1 of 4 tasks

Map construction changes when you upload more than one file #263

lvalladares opened this issue Dec 17, 2023 · 0 comments

Comments

@lvalladares
Copy link

lvalladares commented Dec 17, 2023

Context

When you upload only one file, the "map" attribute sent in the multipart request look like this:
map: {"0":["variables.contractor.driversLicense.licenseFile.file"]}

But when you try to upload more than one file, the map changes and look like this

map: {"0":["0.variables.contractor.driversLicense.licenseFile.file"],"1":["1.variables.contractor.signedContract.file"]} 0: (binary)

(notice the number before the "variables" part) which doesnt follow the spec.

If I remove the number before the "variables" string and send a cURL the server handles the upload properly

What type of feedback is this?

  • Question
  • Idea
  • Bug
  • New example or operation collection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant