ImageUpload takes the name of an file upload input field and validate its values to determine if it was uploaded a file of the accepted types and the file size does not exceed a given limit.
If the file is valid, ImageUpload is copied to a given destination directory. The class creates that directory if it does not exist already. When the file is an image, a thumbnail can also be created.
PHP 4.0 or higher