This repository has been archived on 2022-02-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
filespread/res/php/upload.php
2016-04-06 17:30:05 +02:00

10 lines
292 B
PHP
Executable file

<?php
# COPYRIGHT (c) 2016 Marcel Kapfer (mmk2410)
# MIT License
if (0 < $_FILES['userfile']['error']) P{
echo "Error: " . $_FILES['userfile']['error'] . "<br>";
} else {
move_uploaded_file($_FILES['userfile']['tmp_name'], "../../assets/file.bin");
header("Location: ../../");
}