So I have a piece of html that uses a form tag to send a file to process.php, then I need to download that file to the server.
HTML:
<form action="process.php" method="post">
File: <input type="file" name="file"><br><br>
<input type="submit">
</form>
then in process.php I need something like this:
<?php download_file_to_server($_GET["file"]); ?>
I've looked all over the net but I couldn't find anything, please help.
Here is the full html:
<html>
<head>
<title>XSS Test</title>
</head>
<body>
<h1>XSS TEST</h1>
<form action="process.php" method="post">
File: <input type="file" name="file"><input type="submit">
</form>
</body>
</html>