mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-28 08:53:59 +00:00
Laravel Vapor - sync code for download files in bulk from S3 to more files
This commit is contained in:
+5
-3
@@ -72,12 +72,14 @@ class BulkDownloadSupplierWhiteFormsLogic
|
||||
$filePathForS3 = 'bulk_whiteform/'.$zipFileName;
|
||||
Storage::put($filePathForS3, file_get_contents($zip_file), 's3');
|
||||
|
||||
$responseContent = Storage::disk('s3')->get($filePathForS3);
|
||||
file_put_contents($zip_file2, $responseContent);
|
||||
// $responseContent = Storage::disk('s3')->get($filePathForS3);
|
||||
// file_put_contents($zip_file2, $responseContent);
|
||||
|
||||
$url = Storage::disk('s3')->url($filePathForS3);
|
||||
|
||||
Log::info('BulkDownloadSupplierWhiteFormsLogic finished processing files count: '.count($groups));
|
||||
|
||||
return response()->download($zip_file2);
|
||||
return response()->download($url);
|
||||
}
|
||||
else {
|
||||
return response()->json([
|
||||
|
||||
Reference in New Issue
Block a user