Image upload
cannot retrieve image from storage/images getting 404 error also not showing in edit
15 Replies
added filament to existing app this is only issue cannot retrieve image
You should provide some information. Nobody can help with this little info
after upload every image show like this but image is there
i already run php artisan storage:link
Check the Console for Errors.
My guess: Your APP_URL doesn't match the URL you are opening in the browser
change the APP_URL
http://localhost/admin/carousels/2/localhost/storage/images/carousels/01HSRQA802SNSXDCGY8ZKBQD4N.png
my app url is localhost
http://localhost:5173/ my inertia working on this port
should i change app url to localhost:5173?
javascript?v=1710323434:1196
GET http://localhost/storage/images/carousels/01HSRQA802SNSXDCGY8ZKBQD4N.png 404 (Not Found) console error
GET http://localhost/storage/images/carousels/01HSRQA802SNSXDCGY8ZKBQD4N.png 404 (Not Found) console error
Does the file exist in
/storage/public/images/carousel
?yes
its storage/app/public/images/carousel
If you go to http://localhost/storage/images/carousels/01HSRQA802SNSXDCGY8ZKBQD4N.png directly, does that work? Otherwise: Check the symlink again
What is that URL?!
no its now working
folder url that contains image
after i change app url to http:localhost
Then this is not a Filament issue but an issue with your setup
ok i will try find case
ty
try to run php artisan storage:link
can try delete the symlink folder. then run storage:link again