mirror of
https://github.com/nextcloud/server.git
synced 2026-03-06 15:31:07 -05:00
create uploads directory for ssl certificates if it didn't exists
This commit is contained in:
parent
e59a1806cf
commit
43f00a2dc8
1 changed files with 1 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ OCP\JSON::checkAppEnabled('files_external');
|
|||
$view = \OCP\Files::getStorage("files_external");
|
||||
$from = $_FILES['rootcert_import']['tmp_name'];
|
||||
$path = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath("").'uploads/';
|
||||
if(!file_exists($path)) mkdir($path,0700,true);
|
||||
$to = $path.$_FILES['rootcert_import']['name'];
|
||||
move_uploaded_file($from, $to);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue