Skip to content
New issue

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

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

Already on GitHub? # to your account

Multiple file upload, but only one file in request body #143

Open
aherrmann opened this issue May 9, 2018 · 2 comments · May be fixed by #183
Open

Multiple file upload, but only one file in request body #143

aherrmann opened this issue May 9, 2018 · 2 comments · May be fixed by #183

Comments

@aherrmann
Copy link

Multiple file upload seems to not be handled correctly. If a user selects multiple files to upload on a file input field, such as the following, then the request body will contain only one file associated with the input field.

<input multiple name="files" id="files" type="file">

From a quick look at the code, maybe this part should use HM.fromListWith (<>) and a HashMap Text [UploadedFile]?

@agrafix
Copy link
Owner

agrafix commented May 10, 2018

Sounds like a bug! The fix seems reasonable to me, although I would prefer to use Vector instead of list. Could you write a test (and possibly a fix) for this? :)

@flyingllama87
Copy link

Running into this too.

@frostbane frostbane linked a pull request Dec 29, 2022 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants