Project

General

Profile

Actions

Bug #68118

closed

Allow empty upload fields with PSR-7

Added by Benni Mack almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
System/Bootstrap/Configuration
Target version:
Start date:
2015-07-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

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 cancelling 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.

Actions

Also available in: Atom PDF