This PHP class uploads files and manipulates images very easily. It is in fact as much as an image processing class than it is an upload class. Compatible with PHP 4, 5, 7 and 8. Supports processing of local files, uploaded files, files sent through XMLHttpRequest.
Creation of dynamic property Verot\Upload::$file_max_size_raw is deprecated
PHP version 8.2
https://github.com/verot/class.upload.php/blob/d8522fdaba5c86d74301f908da66b7814efa4960/src/class.upload.php#L1773