Issues Getting My Images to Display

Status
Not open for further replies.

americ23

New Member
Messages
3
Reaction score
0
Points
1
My site is sort of a multi-page gallery and I used many different sub folders inside of an "images" folder to link to them. My issue is uploading them to the File Manager. I can't just upload the entire files, and I tried recreating the folders in the control panel and that didn't seem to work either.

Is there any way I can do this without changing the HTML? For example, the links I use in my html might look like this:
img src="images/pittsburgh/skyline.jpg"
or
img src="images/cleveland/skyline.jpg"

Can I possibly upload this images folder with all its sub folders to the file manager so that all my image links will work and display?
I am pretty new at this, any help, advice or guidance would be much appreciated. Thank you!
 

Anna

I am just me
Staff member
Messages
11,781
Reaction score
593
Points
113
The easiest way would probably be to use ftp to upload your images, with this option you can take the enitre images folder in one go (the ftp client will transfer them one by one including the folders keeping the same structure).

Another option could possibly be making a compressed .zip of your images folder and upload that one, and then use the filemanager to unzip them, this might not be an option if there's a lot of them creating a .zip archive that is large.

Also with an gallery type of site you would need to be aware of the 1gb total restriction for image files as per ToS: "Personal Image and Video Galleries: Personal galleries are limited to 1 GB of disk space for images and videos."
 

americ23

New Member
Messages
3
Reaction score
0
Points
1
Thank you, Anna! I followed your advice and was able to upload the zipped images folder and extract the files without issue. But they still aren't displaying on the page.

I placed the images folder in the public_html file with the rest of my html files. Any idea what I might be doing wrong?
 

Anna

I am just me
Staff member
Messages
11,781
Reaction score
593
Points
113
Checking on your account I notice that some images end .JPG (capital letters), some .jpg, in a Linux environment such as we have on our servers, those would be treated as different files, meaning image.JPG and image.jpg would be treated as two different files.

In your code however, for the few I checked, you always refer to them with the lowecase option, this means that if the file is actually saved with upper case the system will not find that particular image, resulting in a broken image on your site.

I also see that some images comes back as being text/generic rather then actually images, might be some corruption as well.

While tiresome work, you would need to make sure they are all the same as in your code, there might be some tool (never used any though so can't be sure or name any) to help you do this locally at your computer so you can change the files there and re-upload with the correct version.
 

americ23

New Member
Messages
3
Reaction score
0
Points
1
Hmm. Yes, I started noticing this myself. You are right this is most likely my issue. The .JPG extension seems to be being added when I upload the images to the file manager. Not sure why it's doing this, but I'm probably going to need to format the files before again before I upload them onto the file manager.

Thanks for all your help!
 
Status
Not open for further replies.
Top