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

Multiple multipart data with same name in multipart #39

Open
memlucky71 opened this issue Oct 29, 2018 · 1 comment
Open

Multiple multipart data with same name in multipart #39

memlucky71 opened this issue Oct 29, 2018 · 1 comment
Assignees

Comments

@memlucky71
Copy link

@pylover Currently, multipart is a dictionary and does not support having several multipart data with the same name.
To support this, I think we have 2 options:

  • Use list as a value of a multipart dict:

Example:

multipart={'inputFiles':[filelike1, filelike2]}
  • Change type of multipart from dict to list of tuples:

Example:

multipart=[('inputFiles', filelike1), ('inputFiles', filelike2)]
@pylover pylover self-assigned this Nov 4, 2018
@pylover
Copy link
Owner

pylover commented Nov 4, 2018

I'm wondering why you need such kind of HTTPForm? I guess you can handle it much better than this.

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

2 participants