Bug #82670
closedEXT:form setting allowedMimeTypes not respects empty
100%
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
Updated by Maik Hagenbruch about 7 years ago
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 && $allowedMimeTypes0 '*') {
return;
}
So the config could be this:
properties:
allowedMimeTypes:
- '*'
Maybe there is an other solution but i dont find it. oO
Another thing.
In my yaml i dont have the MimeType Validator set, but this validator is always running i think.
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55869
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55869
Updated by Gerrit Code Review over 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55869
Updated by Gerrit Code Review over 6 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55869
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56197
Updated by Ralf Zimmermann over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 58e155ac0119b24497c6ebe1290cefeb02c4a69e.