From 6a8365fd90d723a8e8ef54d7b423832ac9f5f6f3 Mon Sep 17 00:00:00 2001 From: Erich Simmons Date: Sat, 7 Aug 2021 16:06:36 -0700 Subject: [PATCH] fix: add S3 Path to the destination path (#24) --- src/Converters/MediaConvert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Converters/MediaConvert.php b/src/Converters/MediaConvert.php index 6186bd4..d1cf391 100644 --- a/src/Converters/MediaConvert.php +++ b/src/Converters/MediaConvert.php @@ -117,7 +117,7 @@ public function withThumbnails(int $framerateNumerator, int $framerateDenominato */ public function saveTo(string $s3Path, $s3bucket = null): MediaConvert { - $destination = 's3://'.($s3bucket ?? config('filesystems.disks.s3.bucket')); + $destination = 's3://'.($s3bucket ?? config('filesystems.disks.s3.bucket')).$s3Path; $this->jobSettings['OutputGroups'][0]['OutputGroupSettings']['FileGroupSettings']['Destination'] = $destination.'/thumbnails/'; $this->jobSettings['OutputGroups'][1]['OutputGroupSettings']['FileGroupSettings']['Destination'] = $destination.'/mp4/';