MIME Wildcard instead of listing types

simple question belonging MIME and file access control.

Is it possible to configure wildcard of MIME -type in the settings.

To allow all text based files, id like to set a wildcard, instead of listing all of them.

Listing of the different types:

/^text/(markdown|plain|csv|rtf|vcard|calendar)$/i

I‘d like to do it this way with a wildcard - (maybe it is not possible) but i do not found anything in the documentation. The correct way would help.

Not working idea ^^

/^text/(*)$/i

Thanks for your feedback

Use a site like regex101 to easily test and diagnose regex.

You probably want something like:

/^text\/.*/i
/^text\/(.*)/i

Hy jtr,

Thank you for the nice link and solution :smile:

/^text\/(.*) /i

works great

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.