mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-25 15:34:02 +00:00
Laravel Vapor - debug reading from S3 storage
This commit is contained in:
+7
-1
@@ -75,7 +75,13 @@ class BulkDownloadCustomerInvoicesLogic
|
||||
$zipDataStr .= $fileContent;
|
||||
}
|
||||
|
||||
$zipFileName = "invoices_{$startDate}_to_{$endDate}_{$company->reference}.zip";
|
||||
$zipDirectory = storage_path('app/bulk_invoice'); // Update this with the actual directory path
|
||||
|
||||
if (!file_exists($zipDirectory)) {
|
||||
mkdir($zipDirectory, 0755, true);
|
||||
}
|
||||
|
||||
$zipFileName = "{$zipDirectory}/invoices_{$startDate}_to_{$endDate}_{$company->reference}.zip";
|
||||
|
||||
if ($zip->open($zipFileName, ZipArchive::CREATE | ZipArchive::OVERWRITE)) {
|
||||
$zip->addFromString($zipFileName, $zipDataStr);
|
||||
|
||||
Reference in New Issue
Block a user