image is save in server but cannot be accessed laravel - laravel

I am using laravel file-manager to store image and it was working fine in http but after changing to https the image are not being displayed although they are being stored in public folder. Only image that are added recently have that problem old image are fine.

The error was in storage:link so after unlinking and then linking that it worked.

Related

Error 422 Uploading files with laravel livewire

I am trying to upload images to S3 using laravel livewire file upload, everything works fine in development, but after deployment on staging or production, I still can upload some images but others ( mostly taken with Iphone ) are giving 422 error, I can upload them after cropping them. How can I solve this issue? I am using Heroku.enter image description here
enter image description here
Okay, I solved this by adding FILESYSTEM_DRIVER=s3 into config vars in productions.

Image Not Found 404 But Image Path Correctly in Laravel

I copy project laravel to new hosting and new domain, its working fine. But the problem is when i upload new image, that image successfully upload to file storage/app/public/upload/folder, but that image not showing on page. See below image
You need to run: php artisan storage:link
to link storage to public folder

laravel file manager not showing uploaded image

I am new to laravel file manager and I'm developing a blog using tinymce5 and this package.
Everything works just fine. But...
The problem:
The problem is that none of the uploaded images are being shown. neither in file manager "when it's uploaded" nor in the blog.
image is not shown in file manager :
What I have done:
Well the problem is caused by the image url. The url is the url below:
http://localhost/storage/photos/maxresdefault.jpg
When I changed it to:
http://127.0.0.1:8000/storage/photos/maxresdefault.jpg
everything worked fine.
The Question is:
Is there any way to force laravel file manager to save image urls using "127.0.0.1:8000" instead of "localhost"?
Or is there any way to load images using a more efficient method?

Laravel storage image on server is not showing

Hello laravel storage link image is showing perfectly in localhost and when i upload the project to shared hosting images are broken. To show images i have been using this syntax
<img src="/storage/users_image/{{$user->users_image }}"
the above one works great on localhost on shared hosting this images are broken to solve i make storage link but images are broken again on broken images it shows https://www.yuvxyz.com/storage/users_image/xxxy.png
note i have uploaded public and other folders on different folders.
Finally i got the solution from YouTube and it works i have created symlink then it worked here is the PHP file

Laravel 5.6 file not found in storage

My Laravel application is about uploading and showing images. It was working good and all images where shown correctly. Now a few weeks later I tried to test it again and it stopped working. Images are in Laravel storage and path is correct but it says: "Failed to load resource: the server responded with a status of 404 (Not Found)".
Path is: http://localhost:8000/storage/images/8/uploaded/1536930406sunflower.png, and it's correct, image is there.
Weird is that it was working for months and now images cannot be found.
Thanks!
I have found the solution to my question and for those who have the same problem:
Storage link in public folder can be possibly broken.
1)Delete storage link in app/public folder.
2)Run command php artisan storage:link to create storage link again.
Also, you have to be sure about your upload folder name and database image addresses are the same.
Otherwise, it will broke and do not forget that it is case sensitive.Example: If image address is "jpg/photo1.jpg" on DB. Your upload folder in storage folder must be "jpg" not "JPG".

Resources