Project

General

Profile

Actions

Bug #82670

closed

EXT:form setting allowedMimeTypes not respects empty

Added by Maik Hagenbruch over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Start date:
2017-10-04
Due date:
% Done:

100%

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

Description

I set up a form and want to allow all mime types.
I tried many things.
I let the list with allowedMimeTypes empty, removed the whole property, wrote an '*'.
But nothing.
The check for that checks only if the set value is in the array of $allowedMimeTypes.

I added a little thing in TYPO3\CMS\Form\Mvc\Validation\MimeTypeValidator

if(count($allowedMimeTypes) 1 && $allowedMimeTypes[0] '*') {
return;
}

So the config could be this:

properties:
allowedMimeTypes:
- '*'

Maybe there is an other solution but i dont find it. oO

Actions

Also available in: Atom PDF