Reverted last change on upload.php