+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 26

Thread: Problem uploading Gif files...

  1. #1
    Join Date
    Apr 2006
    Location
    North of Nottingham UK
    Posts
    24

    Default Problem uploading Gif files...

    Hi all,
    I've been uploading images to my public.html folder, but they didn't show on the pages. So I went into public.html/images folder - uploaded into that, and got the same result. What am I doing wrong? (This time...!)
    TIA, Nick.
    Walk the walk... Talk the talk.
    [urls]www.accent-gls.co.uk & www.sizzle4x.com
    Plus the blog: http://uk.360.yahoo.com/nick106b

  2. #2
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    Where are the pages expecting to find them? If the call in your html is, for example:

    <img src="mylogo.gif">

    then the .gif file needs to be in the same directory as the html file. If the call is:

    <img src="mypics/mylogo.gif">

    then the .gif file needs to be in the "mypics" directory directly beneath whatever directory the html is in.

  3. #3
    Join Date
    Apr 2006
    Location
    North of Nottingham UK
    Posts
    24

    Default

    No mypics folder.
    The Images folder was in the Public HTML directory and I thought the gif's should have been picked up from there. When they wer'ent I put them back in the public html folder - but they still did not show. So where do I go from here. This is using cPanel, by the way...
    Walk the walk... Talk the talk.
    [urls]www.accent-gls.co.uk & www.sizzle4x.com
    Plus the blog: http://uk.360.yahoo.com/nick106b

  4. #4
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    You're not getting this. Somewhere inside the html code for your webpage, the page is pointing to the image files. Those files need to be whereever the html code is pointing to. Without seeing your html code, I can't tell you where that is. I was just using "mypics" as a hypothetical example.

    You have to open up the webpage file, and find out where it thinks the picture files are. Whereever it thinks the .gif files are, that's where they need to be, or it won't be able to find them!

  5. #5
    Join Date
    Apr 2006
    Location
    North of Nottingham UK
    Posts
    24

    Default HTML is correct

    The pages point to a sub-folder "AB New" where all the gif files are.
    I really do not understand why they do not show when I upload them.
    They do show in the cPanel public html folder, so they should show on the individual pages. Or am I missing something? (Still!)
    Walk the walk... Talk the talk.
    [urls]www.accent-gls.co.uk & www.sizzle4x.com
    Plus the blog: http://uk.360.yahoo.com/nick106b

  6. #6
    Join Date
    Feb 2006
    Location
    Somewhere where I don't know where I am
    Posts
    2,155

    Default

    Post your HTML code. We really can't help you much more if we're kept in the dark
    Sign Up Now!
    Unlimited Storage, Unlimited Transfer, Host Unlimited domain names, 1 Free Domain Name
    BlueHost Features | BlueHost Help Desk | Become a BlueHost Affiliate | BlueHost CEO Blog
    (888) 401-4678 | Create a support ticket

  7. #7
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    Mystery solved!! Folders (directories) on the server can not have names with spaces in them, so "AB New" is going to fail on uploading. Same rule for filenames.

    To keep yourself from getting wrapped around the axle, the best practice is to restrict your file and folder names to a-z, 0-9, dash (-), and underbar(_). Don't use any spaces or other special characters.

    I'd keep it all lowercase, too - no capital letters. Why? Because file names on the server are case-sensitive. "Mydog.jpg" and "Mydog.JPG" and "mydog.jpg" are three different files. If you stick to lowercase all the time, you won't get confused (been there, done that ).

    So, rename everything in the folder on your PC where you're building your pages to follow these rules, then rebuild the pages and upload them.

  8. #8
    Join Date
    Apr 2006
    Location
    North of Nottingham UK
    Posts
    24

    Default Problem still not solved...

    EARLY OUT you are still missing the point.
    These gif files are from a 'resell' file copied into Frontpage. All the gif's were saved into a folder on my hard drive "AB NEW". This is a sub folder to my "Webs" folder, where the pages of this site are stored.
    All the gif's are in lower case, some with _ underscores in the titles... But - that is not the problem. Its when I load them into my 'public/html' fo;der in cPanel, because whether I load them into the 'public/html' or into the sub-folder 'public.html/images, they do not show on the uploaded pages - even after "refresh". Does that clarify my case?
    I'm green, but not that green... Cheers, Nick.
    Walk the walk... Talk the talk.
    [urls]www.accent-gls.co.uk & www.sizzle4x.com
    Plus the blog: http://uk.360.yahoo.com/nick106b

  9. #9
    Join Date
    Feb 2006
    Location
    Florida, USA
    Posts
    153

    Default

    Quote Originally Posted by Early Out
    Mystery solved!! Folders (directories) on the server can not have names with spaces in them, so "AB New" is going to fail on uploading. Same rule for filenames.

    To keep yourself from getting wrapped around the axle, the best practice is to restrict your file and folder names to a-z, 0-9, dash (-), and underbar(_). Don't use any spaces or other special characters.
    This is not true, you can have spaces in directories and filenames. If they are having a problem uploading, it may be an issue with the program you are using. I do agree that you should not use spaces in files/directories though.

    Quote Originally Posted by nick106b
    EARLY OUT you are still missing the point.
    These gif files are from a 'resell' file copied into Frontpage. All the gif's were saved into a folder on my hard drive "AB NEW". This is a sub folder to my "Webs" folder, where the pages of this site are stored.
    All the gif's are in lower case, some with _ underscores in the titles... But - that is not the problem. Its when I load them into my 'public/html' fo;der in cPanel, because whether I load them into the 'public/html' or into the sub-folder 'public.html/images, they do not show on the uploaded pages - even after "refresh". Does that clarify my case?
    I'm green, but not that green... Cheers, Nick.
    The folder should be public_html unless you are uploading them to a sub-folder within that folder.
    BlueHost Knowledge Base, it is quite helpful, you should read through it.

  10. #10
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    I surrender, nick106b. You clearly understand the problem better than I do. Hope you find a solution.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts