mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-30 01:43:59 +00:00
Laravel Vapor - sync code for download files in bulk from S3 to more files
This commit is contained in:
@@ -100,7 +100,7 @@ class ConvertsBase64ToFile
|
||||
private function generateFile(FileObject $file, string $suffix = '') {
|
||||
|
||||
$filesystemDriver = Storage::getDefaultDriver();
|
||||
if($filesystemDriver == 's3'){
|
||||
if($filesystemDriver === 's3'){
|
||||
$filePath = 'documents/'.$this->path.'/'.$file->getFileName().$suffix.'.'.$file->getExtension();
|
||||
Storage::put($filePath, $file->getDecodedData(), 's3');
|
||||
return $filePath;
|
||||
|
||||
Reference in New Issue
Block a user