Mime wildcards

See all posts Reply

Mime wildcards new!
by Roger, 17 years, 7 months ago
I want user to upload only images.

Instead of adding all image mime types one by one, which could in be around 30s, is there a way to add wildcards.

$handle->allowed = array('image/*');
Reply
Re: Mime wildcards new!
by colin, 17 years, 7 months ago
It is not possible to add wildcards at the moment. But it is a good idea, and might be implemented in a future version.Reply
Re: Mime wildcards new!
by Roger, 17 years, 7 months ago
And while we are it, might also want to add "disallowed" feature.

We want to allow user to upload all file types except a few executables. It is easier to add those few exceptions than adding 100s of allowed extensions.Reply