diff options
author | adam <adam@> | 2021-02-12 13:32:24 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-12 13:32:24 +0200 |
commit | 8c243f56c3a8a31c9814f11ded96e7ceabfd8d01 (patch) | |
tree | f5051dd1deac84e550eb17c76c382f286977a8a7 /php | |
parent | 907a4604fd7b8415c166b0949f059da9a5463554 (diff) | |
download | fileup-8c243f56c3a8a31c9814f11ded96e7ceabfd8d01.tar.gz |
asdf
Diffstat (limited to 'php')
-rw-r--r-- | php/configuration.php | 2 | ||||
-rw-r--r-- | php/upload.php | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/php/configuration.php b/php/configuration.php index 5510131..476311d 100644 --- a/php/configuration.php +++ b/php/configuration.php @@ -18,7 +18,7 @@ $database_username="outsider"; $database_password="parola123"; $database_location="localhost"; - $storage_root = "/tmp/fileup_storage"; + $storage_root = "/tmp"; } diff --git a/php/upload.php b/php/upload.php index b6cd335..01ab6a6 100644 --- a/php/upload.php +++ b/php/upload.php @@ -19,7 +19,6 @@ if($codename=="error") http_response_code(400); exit(0); } -error_log($file['tmp_name']); move_uploaded_file($file['tmp_name'], "$storage_root/$codename"); http_response_code(200); |