mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
ncp-web: fix upload from local file path
Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
parent
26edf1f7b0
commit
05f0d352cf
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user