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 Koch13mo 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
SoundmitOP13mo 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 Koch13mo ago
Yes you need a field to store the file paths.
Want results from more Discord servers?
Add your server