Skip to content
← Back to Community
Imges not displaying
Profile icon
Cypressmt

I have uploaded the website and all its files and folder to repl.it and checked that they are all there.

However some images do not display, I do not know why. It seems to be rather random. Please help

Voters
Profile icon
Aliefgaming
Profile icon
Cypressmt
Comments
hotnewtop
Profile icon
SixBeeps

Strangely enough, it looks like the file paths are case sensitive. For the example you gave, switching .jpg to .JPG worked.

Profile icon
19wintersp

@SixBeeps Why is this "strangely enough"?

Profile icon
Cypressmt

@SixBeeps I have tested that already. Replacing uppercase to lower case or vise versa has no effect. Also Repl automatically makes .JPG or .PNG caps for some reason despite the files were originally in lowercase

Profile icon
SixBeeps

@19wintersp I could have swore that file names were always case-insensitive. Unless that's not the case, in which case I'm going crazy.

Profile icon
19wintersp

@SixBeeps On Replit? Because file names are always case-sensitive nowadays.

Profile icon
Cypressmt

A prime example of this occurance would be in index.html line 29:

This file cannot be displayed: data/topleft/overall/IMG_4328.jpg

It is clearly linked to the file but it refuses to display. I removed it from the folder and changed the link and it still failed to load. Seems like repl doesn't want to load the image for some reason.

The entire website was tested locally and everything worked smoothly