[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:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Markus Klein <markus.klein@typo3.org> Tested-by:
Markus Klein <markus.klein@typo3.org>
Please register or sign in to comment