New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media not show image after upload if location out side public folder #5362
Comments
Not sure I understand you. |
there 2 folders inside media |
I had the same problem. And don't forget to |
I found an unorthodox solution, maybe can help. Obviously it will affect the whole application, so you must check all the places where you used the symlink |
Hellow, simply go to filesystem , look at the local drive , update root path to app/public 'local' => [ to |
Thank you @pro-cms |
@aroon9002ahmed @pro-cms An explanation on what's happening: 'storage' => [
'disk' => env('FILESYSTEM_DRIVER', 'public'),
], Since FILESYSTEM_DRIVER was not defined by default in Laravel the public storage was used, but in Laravel 8.5.19 the default value was added. laravel/laravel@c5d38d4#diff-a3046da0d15a27e89f2afe639b25748a7ad4d9290af3e7b1b6c1a5533c8f0a8c @emptynick @fletch3555 should we change voyager config file and just set |
Yeah I think we can do that |
laravel/laravel 8.5.19 introduced a default value for FILESYSTEM_DRIVER Fixes thedevdojo#5362
@aroon9002ahmed @MrCrayon @emptynick #5364 is the best solution , thank you |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group. |
Version information
Description
Media not show image after upload if location out side public folder
APP_URL=http://localhost:8000
filesystem:
Screenshots
if upload outside public folder
https://s1.im.ge/2021/06/10/N1p8.jpg
if upload inside public folder
https://s1.im.ge/2021/06/10/NOCX.jpg
The text was updated successfully, but these errors were encountered: