Files and Folders: Classe Para Upload e Validação
Gilberto Albino (contact me)
This class can be used to validate and process image files uploaded via Web forms.
It takes an entry of the $_FILES array for an uploaded file and validates whether the size does not exceed a given limit and that the file name extension is of GIF, PNG or JPEG formats.
If the uploaded file is valid, it moves the file to a given directory.
Click here for detailed information about this class on phpclasses.org