UniSharp / laravel-filemanager

Media gallery with CKEditor, TinyMCE and Summernote support. Built on Laravel file system.
https://unisharp.github.io/laravel-filemanager/
MIT License
2.06k stars 722 forks source link

Image not show after upload is succesfully #939

Open slondock22 opened 4 years ago

slondock22 commented 4 years ago

Hi,

After following the instructions for installation on localhost everyhting is work fine. But i get error 404 not found in my server. I've got double url prefix before the default laravel-filemanager uploaded path.

My console log (404) : http::ROOT_URL/ROOT_URL/storage/photos http://**ROOT_URL**/admin/campaign/**ROOT_URL**/storage/photos/1/25041561603014978.jpeg

it shoul be (correct): http:///**ROOT_URL**/storage/photos/1/25041561603014978.jpeg

How can i fix it?

Note: I tried to check the config/lfm.php and searching the "base_directory" is not exist on file.

huylong commented 4 years ago

Which version do you use? You should use command php artisan storage:link Forlder image default : storage/app/public/photos you can change in file config/lfm.php

umitaydogan commented 4 years ago

I had same issue. I removed the APP_URL from .env file and it worked for me.