$_FILE
public text v1 · immutable//PHP
$tf = $_FILES['Filedata']['tmp_name'];
if (is_uploaded_file($tf)) {
move_uploaded_file($tf, "../pics/$id.jpg");
}
//HTML
<html>
<body>
<form action='./upload.php' method='POST'>
<input type='hidden' name='id' value='f676528ff429a66790e5bad45bb5bc8f' />
<input type='file' name='Filedata' />
<input type='submit' name='submit' value='submit' />
</form>
</body>
</html>