filepload display problem

My image is saved in storage/app/public but is not displayed in my component, whereas in v2 I had the preview. Is there any configuration to be done?
Solution:
The solution is to type the following command:
php artisan storage:link
php artisan storage:link
...
Jump to solution
6 Replies
Becker Maxime
Becker MaximeOP13mo ago
No description
Becker Maxime
Becker MaximeOP13mo ago
FileUpload::make('logo')
->image()
->imageEditor()
->previewable(true)
->columnSpan(2),
FileUpload::make('logo')
->image()
->imageEditor()
->previewable(true)
->columnSpan(2),
Dennis Koch
Dennis Koch13mo ago
If it's stored in public the disk should probably be ->disk('public')?
Becker Maxime
Becker MaximeOP13mo ago
I still don't have a preview the problem is that it looks for a http://localhost/public/citF53nnFumqErpMtNlmK6tdCRmDJV-metaQ2FwdHVyZSBk4oCZw6ljcmFuIGRlIDIwMjMtMDktMDcgMTItMjktMjUucG5n-.png url instead of a blob. I don't understand why.
Solution
Becker Maxime
Becker Maxime13mo ago
The solution is to type the following command:
php artisan storage:link
php artisan storage:link
Dennis Koch
Dennis Koch13mo ago
Well the first thing you should check is whether you can access the file at all, before we debug the FileUpload 🤷🏼‍♂️
Want results from more Discord servers?
Add your server