Lot of changes in the upload page

Thanks to CertaiN at
http://www.php.net/manual/en/features.file-upload.php#114004