Uploading Files to Server - Loss of Image Files?

Discussion in 'HTML & Website Design' started by m1ndless, Jul 2, 2010.

  1. #1
    When I go to upload all my files to my server, none of my images seem to work. Do I need to do anything more than, for example, images/main_bot.png?

    If all my images are in the images foler, sholdn't they work? I had to physically list the URL of the image to get it to work, and I really do not want to have to do this for every single image?

    Any advice would be great!

    Edit: heres a snippit of code:

    <table style="width:766px; background:url(images/main_bot.png) no-repeat left bottom">
     
    m1ndless, Jul 2, 2010 IP
  2. hes

    hes Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try background:url(/images/main_bot.png)
     
    hes, Jul 2, 2010 IP
  3. dipenrique

    dipenrique Peon

    Messages:
    181
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ur path is wrong for sure ! is ur using this table inside a html/php file ! then the folder/directory that contains this file must have a folder called "images" with images in it as you are saying ! is that right? check it !
     
    dipenrique, Jul 3, 2010 IP
  4. .3rok3n

    .3rok3n Well-Known Member

    Messages:
    383
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #4
    try this ../images/main_bot.png i hope it will work
     
    .3rok3n, Jul 3, 2010 IP
  5. m1ndless

    m1ndless Peon

    Messages:
    1,112
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I tried adding the slash, that did not work. I went ahead and used the full URL of the images and that doesn't work either, at least not for most images.
     
    Last edited by a moderator: Jul 3, 2010
    m1ndless, Jul 3, 2010 IP
  6. Mystique

    Mystique Well-Known Member

    Messages:
    2,579
    Likes Received:
    94
    Best Answers:
    2
    Trophy Points:
    195
    #6
    It might be that you have made changes to your domain and the site is trying to show the old hosting service, i.e. if you just switched to a new hosting service.

    Or it might be that you are capitalizing their names, i.e. the stylesheet reads mages/main_bot.png and the directory might be IMAGES/main_bot.png or the image could be mages/Main_Bot.png

    In Linux environments this can make the difference.
     
    Mystique, Jul 3, 2010 IP
  7. m1ndless

    m1ndless Peon

    Messages:
    1,112
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I ended up hosting the images on my other server, and just using the full URL in the image source, it works now though thansk!
     
    m1ndless, Jul 4, 2010 IP
  8. chandru

    chandru Member

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #8
    Setting permissions code 777 , it will work dude ............
     
    chandru, Jul 5, 2010 IP