Mime type problem

See all posts Reply

Mime type problem new!
by RDK, 8 years, 11 months ago
Hello!

We have identified a compatibility problem if class.upload.php v 0.32 is used with a PHP version compiled against PCRE 8.35, this version requires the hypen (-) to be escaped in the expression, otherwise the expression fails with

preg_match(): Compilation failed: invalid range in character class

Making Mime detection non functional

Replacing the expressions with

"/^([\.\-\w]+)\/([\.\-\w]+)(.*)$/i"

Fixes the problem in our case

Thanks for the great workReply
Re: Mime type problem new!
by colin, 8 years, 11 months ago
Please use the latest version on Github, it fixes that issue.Reply