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

Allow file uploads with empty body or empty filenames #10236

Merged
merged 3 commits into from
May 19, 2020

Conversation

mkurz
Copy link
Member

@mkurz mkurz commented Apr 27, 2020

Fixes #10113

Introduces the config

play.http.parser.allowEmptyFiles = [true|false]

Besides the added tests I also did quite some manual testing, with the config and also with custom body parsers (which extend from MultipartFormData ones). Works like a charm.

ignasi35
ignasi35 previously approved these changes May 19, 2020
@ignasi35
Copy link
Member

Nice work @mkurz :hat-tip:

@mergify mergify bot merged commit 2fa17aa into playframework:master May 19, 2020
@mkurz mkurz deleted the non_empty_file branch May 19, 2020 15:07
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

Successfully merging this pull request may close these issues.

Upload empty file
3 participants