Improvement for Uploading of receipts
This commit is contained in:
@@ -60,7 +60,7 @@ class CreateInvoiceReceiptCommand {
|
||||
storage_path('app/private/' .$filename) . '.zip',
|
||||
ZipArchive::CREATE | ZipArchive::OVERWRITE
|
||||
);
|
||||
|
||||
dd($receipt);
|
||||
$zip->addFile(storage_path('app/private/' . $tmpFileName ), 'antrag.pdf');
|
||||
$zip->addFile(storage_path('app/private/' . $receipt), 'beleg.pdf');
|
||||
|
||||
|
||||
@@ -16,12 +16,6 @@ class WebDavProvider {
|
||||
public function uploadFile(string $fileName) : bool {
|
||||
$baseDir = storage_path('app/private/');
|
||||
|
||||
return $this->webDavClient->upload_file($baseDir . $fileName, $this->workingDirectory . '/'.
|
||||
basename($fileName)
|
||||
|
||||
|
||||
|
||||
);
|
||||
return $this->webDavClient->upload_file($baseDir . $fileName, $this->workingDirectory . '/');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user