PHP class to upload and validate files.