Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

redroseamit's avatar

in localmachine image upload is working and image is displaying but in hosting server image is uploaded but thumbnail not displaying larave 7.2

i am using laravel 7.2 . i uploaded it on server .issue is that images are not visible ,image is uploading proper in public/storage/media ...but not displaying in admin panel but in my computer local machine its working proper can you please help me out to provide best solution ?

0 likes
11 replies
Sinnbeck's avatar

How are you calling the images in code? Did you update APP_URL in env? Check your console (f12) for errors

jlrdw's avatar

So the image is there, but not displaying.

What code are you using to display? I usually use the asset helper with an img tag. I.e.,

<img src="{{ asset('assets/upload/imgdogs') . '/' . $row->dogpic }}" alt="" class="image">

You probably just need to resolve to correct url.

Sinnbeck's avatar

How about the console. Any errors? Check network tab (reload) for any red lines (errors)

redroseamit's avatar

there is no error sir....in local machine everything is working....but in server i create prduct and adding image that time image is displaying and uploaded into the folder but after that when i refresh my product panel in admin its showing only thumbnail not image..

when i am clicking over view image ....image path is correct but image is not showing https://www.example.com/ecom/public/storage/media/NbFYjqP4JViGoAHDqCgqaCUoijhBpSCIg4CU8XQO.jpeg

Sinnbeck's avatar

So if you open that image in a new tab you get 404? Is this shared hosting?

redroseamit's avatar

correct sir ,,yes sir it is shared hosting....when i am changing image permission 644 to 777 then its visible only when i go through the path..i am using cpanel

redroseamit's avatar

thank you so much sir ....really appreciate your expertise ,,,Great sir..i found my issue.

1 like

Please or to participate in this conversation.