Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ncp-web/upload.php')
-rw-r--r--ncp-web/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ncp-web/upload.php b/ncp-web/upload.php
index 38b47cb7..1dc6a788 100644
--- a/ncp-web/upload.php
+++ b/ncp-web/upload.php
@@ -38,7 +38,7 @@ $extension = pathinfo($file_name, PATHINFO_EXTENSION);
if ($extension !== "tar" and $extension !== "gz")
exit( '{ "output": "invalid file" }' );
-if (!move_uploaded_file($file_tmp, sys_get_temp_dir() . '/' . $file_name))
+if (!move_uploaded_file($file_tmp, '/tmp/' . $file_name))
exit('{ "output": "upload denied" }');
// return JSON