class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
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
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 work