You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TASK] Streamline MimeTypeValidator option handling in FileUpload
With #103511, the FileUpload attribute has been introduced to allow
file upload in extbase. For the FileSize and ImageDimensions
validators, it is possible to provide all possible validator options
via configuration. For the MimeTypeValidator, this is however not
possible and the validator is always initialized with the allowedMimeTypes configuration only.
With this change, the FileUpload attribute has been extended to
support the new mimeType configuration, which allows to define
all possible options of the MimeTypeValidator (allowedMimeTypes, ignoreFileExtensionCheck, notAllowedMessage, invalidExtensionMessage).
The allowedMimeTypes configuration in the FileUpload attribute
is kept to ensure backwards compatibility for users already using
this configuration.
ℹ️ View this commit on Github
👥 Authored by Torben Hansen [email protected]
✔️ Merged by Garvin Hicking [email protected]
Commit message
[TASK] Streamline MimeTypeValidator option handling in FileUpload
With #103511, the
FileUpload
attribute has been introduced to allowfile upload in extbase. For the
FileSize
andImageDimensions
validators, it is possible to provide all possible validator options
via configuration. For the
MimeTypeValidator
, this is however notpossible and the validator is always initialized with the
allowedMimeTypes
configuration only.With this change, the
FileUpload
attribute has been extended tosupport the new
mimeType
configuration, which allows to defineall possible options of the
MimeTypeValidator
(allowedMimeTypes
,ignoreFileExtensionCheck
,notAllowedMessage
,invalidExtensionMessage
).The
allowedMimeTypes
configuration in theFileUpload
attributeis kept to ensure backwards compatibility for users already using
this configuration.
Resolves: #105532
Related: #103511
Releases: main, 13.4
Change-Id: I146d091fb024097812aaa608b2b429d39f058b1f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86873
Reviewed-by: Jörg Hofrichter [email protected]
Tested-by: Jörg Hofrichter [email protected]
Reviewed-by: Benni Mack [email protected]
Tested-by: Garvin Hicking [email protected]
Reviewed-by: Garvin Hicking [email protected]
Tested-by: core-ci [email protected]
➗ Modified files
13.3/Feature-103511-IntroduceExtbaseFileUploadHandling.rst
The text was updated successfully, but these errors were encountered: