From 8c243f56c3a8a31c9814f11ded96e7ceabfd8d01 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 12 Feb 2021 13:32:24 +0200 Subject: asdf --- php/configuration.php | 2 +- php/upload.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'php') 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); -- cgit v1.2.3