Fixed cloud assets bugs

* missing lib
* missing real path

Change-Id: Idce97f22b40b5304ef3eda98e77be1661386bb7c
This commit is contained in:
smarcet 2019-01-09 19:17:00 -03:00
parent 2d3d20152a
commit 2a43cdcb09
3 changed files with 371 additions and 185 deletions

View File

@ -53,7 +53,7 @@ final class FileUploader
$local_path = Storage::putFileAs(sprintf('/public/%s', $folder_name), $file, $file->getClientOriginalName());
$folder = $this->folder_service->findOrMake($folder_name);
$local_path = Storage::disk()->path($local_path);
$attachment->setParent($folder);
$attachment->setName($file->getClientOriginalName());
$attachment->setFilename(sprintf("assets/%s/%s", $folder_name, $file->getClientOriginalName()));
@ -68,7 +68,7 @@ final class FileUploader
}
catch (\Exception $ex){
Log::error($ex);
$attachment->setCloudStatu('Error');
$attachment->setCloudStatus('Error');
}
return $attachment;
}

View File

@ -25,7 +25,8 @@
"smarcet/caldavclient": "1.1.6",
"smarcet/outlook-rest-client": "dev-master",
"idct/sftp-client": "dev-master",
"php-opencloud/openstack": "3.0.5"
"php-opencloud/openstack": "3.0.5",
"symfony/yaml": "4.2.2"
},
"require-dev": {
"filp/whoops": "^2.0",

549
composer.lock generated

File diff suppressed because it is too large Load Diff