fixed errors in CEST2014 upload.php