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:Jump to 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
3 Replies
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
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
Yes you need a field to store the file paths.