0

I am totally stuck and hope that someone here might have had the same problem in the past.

When I test my code under localhost, all images displays perfect, not so when uploaded from my hosting server.

What it does: It uploads data from the database as a description of an article for sale - no problem, loads perfect. It then displays a main image with 3 thumbnails below that. Not showing images.

I have clicked on "inspect element", the picture name and folder was returned from the database 100% i.e. uploads/folder30/1.jpg.

I then checked, the image does exist in the root folder under uploads/folder30. The same problem with the thumbnails, also shows that the correct naming was returned but no images is showing although it does exist in its respective folders.

I have checked all naming conventions, all folders and images is named correctly with the correct lowercase used (all folders and images naming is in lowercase).

I also thought it might be the image sizes - main image is a 600x400 pixel image and thumbs is 100x100 pixel images. also, not the problem. I then uploaded larger images AND smaller images, still did not resolve the problem.

I am at my wits end here and will reaaly appreciate all input I can find. I have searched endlessly for the same error, could not find 1 link where a user had a similar problem.

Thanx guys/Gals.

2
Contributors
7
Replies
8
Views
4 Years
Discussion Span
Last Post by AndreRet
0

mmm, I've added a .htaccess file in the folder, can it be that. Inside htaccess file - "Options -Indexes"

I've added the file to every folder for that matter to protect the contents within.

I can remove it if you like to see content.

Edited by AndreRet

0

-Indexes just means that you cannot request a directory list. Perhaps there is an inherited security active?

0

I'll have a look into that now from a server point of view. Will let you know soon, thanx sofar.

0

Ok, 2 days later...

It seems that the clients hosting was managed by another company on the same root folder. with different users. I eventually got the correct path to the image folder from Hetzner, all is fine now.

Thanx Pritaeas...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.