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.
PHP 5.4+ versions are very sensitive to regular expressions and in this case gives warning message on not valid range expression part [\.-\w] Dash symbol means some kind of range like a-z or 0-9, but here symbols "." to "w" does not make any sense. I assume that dash should come on first or last position inside brackets. Search for all "preg_match" expressions through "class.upload.php" file and change [\.-\w] to [\.\w-] and it will work for all newer PHP versions.
PHP 5.4+ versions are very sensitive to regular expressions and in this case gives warning message on not valid range expression part [\.-\w]
Dash symbol means some kind of range like a-z or 0-9, but here symbols "." to "w" does not make any sense. I assume that dash should come on first or last position inside brackets.
Search for all "preg_match" expressions through "class.upload.php" file and change [\.-\w] to [\.\w-] and it will work for all newer PHP versions.
It worked more me already.