raw version of upload.php