Laravel Vapor - sync code for download files in bulk from S3 to more files

This commit is contained in:
Dillon Ngo
2024-04-27 11:50:32 +08:00
parent 4ec4ecbb7a
commit f98e2cb4dd
@@ -63,6 +63,12 @@ class BulkDownloadSupplierWhiteFormsLogic
return response()->download($zip_file);
}
else {
return response()->json([
'status' => 'Error',
'message' => 'Failed to create the Zip archive for supplier white forms.',
]);
}
}
else{
$zip_file = "{$zipDirectory}/currency_vendor_orders_{$request->input('startDate')}_to_{$request->input('endDate')}_{$companyReference}.zip";