aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php/configuration.php2
-rw-r--r--php/upload.php1
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);