FileUpload download/preview file from private storage

Hi, is it possible to simply download a file from private storage?

I've tried this, but this doesn't preview or download it correctly.

FileUpload::make('images')
                            ->preserveFilenames()
                            ->multiple()
                            ->image()
                            ->disk('local')
                            ->visibility('private')
                            ->directory(fn (?Application $application) => $application?->id)
                            ->enableOpen()
                            ->enableDownload()
Was this page helpful?