Project

General

Profile

Actions

Bug #73618

closed

EXT:form - Validator for allowed file types should ignore whitespaces in types list

Added by Felix Heller about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2016-02-23
Due date:
% Done:

100%

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

Description

The validator FileAllowedTypesValidator expects a comma separated list with whitespaces:

public function setAllowedTypes($allowedTypes) {
    $allowedTypes = strtolower($allowedTypes);
    $this->allowedTypes = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(', ', $allowedTypes);
    return $this;
}

In my opinion it would be better if a simple comma separated list would work, too. A configuration like this does not work as expected:

types = application/pdf,image/jpeg

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #72890: FileAllowedTypesValidator ErrorClosed2016-01-22

Actions
Actions

Also available in: Atom PDF