Upload attachment

I'm trying to implement a image upload for attachment all seems ok, the name of the file is saved in the database and the file on the file system but i can't see the file after the upload. inspecting the code i found: "https://rps.ddev.site/storage/01HFCE8YQFFSPQVW2P0TA0ZPHQ.svg" while the file is in https://rps.ddev.site/storage/app/public/01HFCE8YQFFSPQVW2P0TA0ZPHQ.svg any advice please? thanks
Solution:
Both is right. If that file doesn’t show up under that url your Laravel setup is not right and you probably didn’t run php artisan storage:link
Jump to solution
3 Replies
Solution
Dennis Koch
Dennis Koch8mo ago
Both is right. If that file doesn’t show up under that url your Laravel setup is not right and you probably didn’t run php artisan storage:link
Soundmit
Soundmit8mo ago
nope, no storage:link, tomorrow i will try thanks in any case, i need a field in the db for store the attachmens, right? i'm coming from wintercms where there is a table for the attachments and you don't need to add a field
Dennis Koch
Dennis Koch8mo ago
Yes you need a field to store the file paths.
Want results from more Discord servers?
Add your server
More Posts
Custom theme for a livewire component using a filament resource tableSo I used a filament table to populate a livewire component and I'm trying to get it to display a cuIs it possible to hide edit/delete buttons from table on mobile only lets say only cellphones ?I tried visibleFrom() or hiddenFrom() methods but they do not exist or visibleOn() .. Any advice pleAdd Searchable() to a form select, hide the listHi! I'm trying to implement a select with a relationship all it's ok (very simple) but when i add thhow to load relationship() on Forms\Components\Fieldset conditionally?The form uses `Forms\Components\Fieldset::relationship('primaryAddress')` to load a related 'addresswhere can I set the redirect url after user logout?when user logouts from the user menu in filament v3 dashboard it redirects the user to `/admin/loginPersist toggleable column state between sessionsHello, It is a way to persist the toggled state of a column? Some of my users want to see their datavalidation ->in() rule is not executed when checking against an empty arrayhey guys, we just encountered a problem with the ->in() rule on the form builder. we try to validaHow to align images horizontally, wrap to next line if there is no more space```php SpatieMediaLibraryFileUpload::make('carousel') ->multiple() ->image() ->collectioReload Page after custom action ends.Hi, I have a custom action where i made some changes on the bbdd, and i need to reload the page at tpls Problem of relationshipproblem data not insert in table partner_product