Description
When using a "File" or "Media" field type in Mask, it's currently not possible to specify the ability to attach any file type with any extension (the way it's configured in pages "media" field).
I suppose it's not as important for the "Media" type, but I'd like it for the "File" type.
When the allowedFileExtensions
field is empty, Mask falls back to common-image-types or common-media-types.
If I insert an asterisk *
in the field, then it appears to be correct at a glance when creating such a mask element, but when trying to actually add s file and save the element, the file just disappears.
Using *
in the field sets the fields config/allowed
TCA entry to "*"
.
The only working way seems to be to completely remove the "allowed" key from the TCA config, but there doesn't seem to be a way through Mask at the moment. Of course I can just remove it using TCA/Overrides.
I'd suggest (to keep some backwards compatibility), that the "allowed" key is only removed, if the special value *
is inserted into the allowedFileExtensions
field.
Greetings
Nitori