diff --git a/src/MediaCollections/Filesystem.php b/src/MediaCollections/Filesystem.php index 2daeaac7e..ad76d56de 100644 --- a/src/MediaCollections/Filesystem.php +++ b/src/MediaCollections/Filesystem.php @@ -340,7 +340,7 @@ public function getMediaDirectory(Media $media, ?string $type = null): string ? $media->conversions_disk : $media->disk; - if (! in_array($diskDriverName, ['s3', 'gcs'], true)) { + if (! Str::contains($diskDriverName, ['s3', 'gcs'], true)) { $this->filesystem->disk($diskName)->makeDirectory($directory); }