voyager: Uploaded images not working

  • Laravel Version: 5.5
  • Voyager Version: latest
  • PHP Version: 7.1

Description:

When i upload a new image or file, its not showing on browser, but the image is correctly on my filesystem. Primary images from install are correctly display

Already tried

  • Change my APP_URL in .env
  • Try if existis on /storage/app/public/posts

Steps To Reproduce:

voyager-img01

voyager-img02

voyager-img03

voyager-img04

voyager-img05

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 35 (3 by maintainers)

Most upvoted comments

It’s simple. I had exact same problem. So here’s my fix… Simply delete the storage folder shortcut in the public folder. The re-run the symlink command “php artisan storage:link” from your terminal That’s it. Lemme know if it worked for you

I found my issue. My .env APP_URL was set as localhost =P Now it works just fine!

hi, i had the same issue. In my case i found the problem… All files from voyager was working, but my uploads not… i checked my public_html folder from hosting, and i found in there a FOLDER called storage, and guess what, the app was reading from this folder(/public_html/storage) and not from my /projectname/storage/app/public, i renamed the storage folder, and use this to create the link to proper folder: <?php $target = '/home/{your user name on hosting website}/{your project name}/storage/app/public'; $shortcut = 'storage'; symlink($target, $shortcut); ?> by default voyager try to create symlink, but on my hosting he just copied the folder 😃

hi, i was facing such problem, i’ve managed to fix the issue by updating APP_URL in .env file from http://localhost to my website domain name http://example.org

i have same issue, Any solution master ?