Skip to content
Snippets Groups Projects
Commit 9a198c81 authored by Benjamin Mack's avatar Benjamin Mack Committed by Markus Klein
Browse files

[BUGFIX] Allow empty upload fields with PSR-7

When editing a record with a regular file upload field (e.g.
a fe_users record with property image), and one does not choose
to upload a file, the PSR-7 implementation currently restricts
this. The $_FILES array is filled with an empty data set.

Thus, PSR-7 is actually canceling the whole request instead
of letting it bypass, like the DataHandler would do the same
when trying to process the uploaded files later.

The patch allows the PSR-7 implementation only to add
the files that have a filename (tmp_name) given.

Resolves: #68118
Releases: master
Change-Id: Ifdf9a59040ba6af3ca7214709f34e2e5be7f5759
Reviewed-on: http://review.typo3.org/41190


Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent 3ec1db06
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment