Skip to content

Commit

Permalink
ncp-web: fix upload from local file path
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <[email protected]>
  • Loading branch information
nachoparker committed Oct 1, 2021
1 parent 26edf1f commit 05f0d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

[v1.39.19](https://github.com/nextcloud/nextcloudpi/commit/b177bd1) (2021-09-30) ncp-web: fix upload from local file path
[v1.39.19](https://github.com/nextcloud/nextcloudpi/commit/92bec43) (2021-09-30) ncp-web: fix upload from local file path

[v1.39.18](https://github.com/nextcloud/nextcloudpi/commit/f1c90f5) (2021-09-30) nc-httpsonly: always use overwriteprotocol https in all cases

Expand Down
2 changes: 1 addition & 1 deletion ncp-web/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
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
Expand Down

0 comments on commit 05f0d35

Please sign in to comment.