F
Filament16mo ago
Ninja++

File downloads DNS address could not be found. Diagnosing the problem.DNS_PROBE_POSSIBLE

When i try to download the file i have uploaded to the public folder and saved the path in the database it gives me a
DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE
DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE
The file goes to the
storage\app\public
storage\app\public
folder fine but when i try to download the file it does not gives me the above error.
filesystem.php
filesystem.php
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'app/public',
'visibility' => 'public',
'throw' => false,
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'app/public',
'visibility' => 'public',
'throw' => false,
],
File upload form:
return $form
->schema([
FileUpload::make('printUrl')
->preserveFilenames()
->downloadable()
->label('Print')
->required()
->visibility('public'),
]);
return $form
->schema([
FileUpload::make('printUrl')
->preserveFilenames()
->downloadable()
->label('Print')
->required()
->visibility('public'),
]);
I do not understand why i can't download the file. Any insight is appreciated.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server