Skip to content

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

@lvalladares

Description

@lvalladares

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions