Invoice upload by robot

This commit is contained in:
2026-02-14 00:04:00 +01:00
parent 4f4dff2edd
commit 2b458eccd7
15 changed files with 278 additions and 6 deletions

View File

@@ -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)