This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
filespread/res/php/upload.php

11 lines
291 B
PHP
Raw Normal View History

2016-04-06 17:30:05 +02:00
<?php
# COPYRIGHT (c) 2016 Marcel Kapfer (mmk2410)
# MIT License
2016-04-09 11:51:38 +02:00
if (0 < $_FILES['userfile']['error']) {
2016-04-06 17:30:05 +02:00
echo "Error: " . $_FILES['userfile']['error'] . "<br>";
} else {
move_uploaded_file($_FILES['userfile']['tmp_name'], "../../assets/file.bin");
header("Location: ../../");
}