This class can be used to validate and process images uploaded using Web forms.
It can validate the file type against lists of accepted and refused file name extensions. It can also accept only files that have a size within a given limit.
The accepted files are copied to a given upload directory. Optionally, the class may refuse files that already exist in the upload directory with the same file name.