Skip to content

Commit 1cfb840

Browse files
committed
Stream file as suggested by CH
1 parent f14631a commit 1cfb840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jobs/DataTableExportJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function handle()
182182
$writer->close();
183183

184184
if($this->getS3Disk()) {
185-
Storage::disk($this->getS3Disk())->put($filename, (new File($path))->getContent());
185+
Storage::disk($this->getS3Disk())->putFileAs('', (new File($path)), $filename);
186186
}
187187
}
188188

0 commit comments

Comments
 (0)