diff --git a/src/Fields/Classes/FileUpload.php b/src/Fields/Classes/FileUpload.php index ec7c2d1e..42123b41 100644 --- a/src/Fields/Classes/FileUpload.php +++ b/src/Fields/Classes/FileUpload.php @@ -72,7 +72,7 @@ public function getResponse(Field $field, FieldResponse $resp): string $disk = Storage::disk(config('zeus-bolt.uploadDisk')); - $getUrl = fn($file) => config('zeus-bolt.uploadVisibility') === 'private' + $getUrl = fn ($file) => config('zeus-bolt.uploadVisibility') === 'private' ? $disk->temporaryUrl($file, now()->addDay()) : $disk->url($file);