0

I try to save my file uploads on a private disk, but I am unable to download my files after they have been uploaded.

image 1 image 2

in my filesystems.php

'documents' => [
    'driver' => 'local',
    'root' => storage_path('app/documents'),
    'visibility' => 'private',
],

in my filament resource

FileUpload::make('aadhar')
    ->disk('documents')
    ->directory('aadhar')
    ->visibility('private')
    ->maxSize(512)
    ->enableDownload()
    ->enableOpen()
    ->preserveFilenames()

Is there any way to download private disk files? I don't need files visible for public use.

1 Answers1

0

Have you thought create symlink for private folder?

mtofur
  • 26
  • 3