Invoice upload by robot
This commit is contained in:
@@ -13,10 +13,10 @@ class WebDavProvider {
|
||||
$this->workingDirectory = $workingDirectory;
|
||||
}
|
||||
|
||||
public function uploadFile(string $fileName) {
|
||||
public function uploadFile(string $fileName) : bool {
|
||||
$baseDir = storage_path('app/private/');
|
||||
|
||||
$this->webDavClient->upload_file($baseDir . $fileName, $this->workingDirectory . '/'.
|
||||
return $this->webDavClient->upload_file($baseDir . $fileName, $this->workingDirectory . '/'.
|
||||
basename($fileName)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user