Home > Mobile >  How to access images in the local storage?
How to access images in the local storage?

Time:03-27

I'm working on a project which has to retrieve some data from the local storage. I'm saving a personal image to the locale storage, but when I'm trying to retrieve the image I'm getting 404 ERROR.

Error: http://localhost:8000/storage/app/img.png

This is the way I'm trying to get the image:

<img src="{{ asset('storage/app/img.png') }}" />

I red the Laravel documentation, but I don't know what is the problem.

CodePudding user response:

Make sure that you are set the symlink with: php artisan storage:link.

Afterwards you can check: <img src="{{ asset('storage/app/img.png') }}" /> or: <img src="{{ asset('storage/img.png') }}" />

  • Related