fileupload issue preview issue
i have set APP_URL=http://127.0.0.1:8000 in .env and i have also done php artisan storage:link
And uploading image like this
but while previewing i am getting this error 404 not found error
11 Replies
What's the result of
$record->termmeta->where('meta_key', "kheltag_profile_image")->first()?->meta_value
?"Xwb5YjKKqfln32d3bP0AFBBmqn8JW9-metaU2NyZWVuc2hvdCBmcm9tIDIwMjMtMDUtMTggMTMtMzYtNTUucG5n-.png"
this is the result
Btw. you are using
local
disk and not public 🤔->disk ('public') not making any difference too
using disk or not...not doing any difference also...i am getting 404 not found error
And that file exists in
storage/app/public
?yes
"6CAuRmwtXPZw6164TnxVGfddpKLwql-metaU2NyZWVuc2hvdCBmcm9tIDIwMjMtMDUtMDIgMTAtMDctMDEucG5n-.png"
this image i uploaded last time
this is also in the public folder
What OS and Dev environment are you using?
ubuntu and local environment
Does
readlink public/storage
return the correct path?i think path is being mismatched...after removing srorage: link i again reconnected...it worked
Thank you