diff --git a/src/Fields/Assets.php b/src/Fields/Assets.php index a6de0446..96df54b9 100644 --- a/src/Fields/Assets.php +++ b/src/Fields/Assets.php @@ -67,7 +67,8 @@ protected function dimensionsProperty(): array public function process(): mixed { $this->value = collect($this->value) - ->flatMap(fn ($file) => AssetsUploader::field($this->field)->upload($file)); + ->map(fn ($file) => AssetsUploader::field($this->field)->upload($file)) + ->flatten(); return parent::process(); }