diff options
-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 ba29cb0..0aefefc 100644 --- a/php/upload.php +++ b/php/upload.php @@ -21,7 +21,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); |