Skip to content

Commit

Permalink
fix: add S3 Path to the destination path (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
serich159 authored Aug 7, 2021
1 parent 1eef413 commit 6a8365f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Converters/MediaConvert.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/';
Expand Down

0 comments on commit 6a8365f

Please sign in to comment.