www.webdeveloper.com
Results 1 to 7 of 7

Thread: dreamweaver /image %20 in file names

  1. #1
    Join Date
    Oct 2005
    Posts
    5

    dreamweaver /image %20 in file names

    i am having terrible problems with my site. some pages are not being displayed although they are on the server. however they show 0 kbs in size. i also can not upload or delete some files.

    in any case, after this was all happening...my images suddenly disappeared from the site online without me doing anyhting?!. i changed the chmod to 755...although i think it is supposed to be 644. and they re-appeared.

    the other big problem is that within dreamweaver now many, but not all, of my images have %20/folder/filename.gif in them. when i try and replace the images....as it is looking like i would need to.... the same file problem occurs.

    how can i correct this? i know that this problem with the images can happen when one moves files or the site from the root folder in dreamweaver....however i have not done this. whatever, i need to change these files to the correct path. can someone please help with the solution to this problem?

    thank you.

  2. #2
    Join Date
    Jun 2005
    Location
    United Kingdom
    Posts
    1,043
    Assuming you have correctly filed images on your server, go into code view and directly correct the file location. So, assuming you have all your images directly in a folder called "images" - and that's directly in your root directly - and that your page files are in your root directory -
    Code:
    <img src="images/filename.gif" alt="whatever" 
    width="xxx" height="yyy" border="z">
    should do it.

    Insert your own values for x, y, and z of course.

    Double check in design view, then upload to server and check again.

    HTH

  3. #3
    Join Date
    Nov 2002
    Location
    Hermantown, MN
    Posts
    1,777
    The %20 means you have a space in the name of the folder or file.

    One of the most basic rules of webdesign is you do not use spaces. IF you must set one word apart from the other studies have found that the "-" mark is better than "_". (without the quotes)

    Rename the files then use the linking toolbox and relink the image to the file.

  4. #4
    Join Date
    Jun 2005
    Location
    United Kingdom
    Posts
    1,043
    From zakaro's original message, I rather assumed that the blank file space was in an internal folder not intended for the server. But I can see there is no guarantee on that.

    Do you have any reference concerning a hyphen being preferrable to an underscore?

  5. #5
    Join Date
    Oct 2005
    Posts
    5

    reply to %20

    i do have underscores in my file name....but not at the begiining. something like......./san_francisco/house/file.101

    everything was fine though......and only some of the files are doing this. when i try and re-insert the pictures it does exactly the same thing. other pictures do not. this changed on its own. almost like something is corrupt. for instance on some of the images it does not contain this yet does have the underscores in the file path. these i can change images and all is fine. on the corrupted image paths i can do nothing...no matter what and the %20 stays in the file name. i am thinking that i must completely re-do the pages but this would be ridiculous.

  6. #6
    Join Date
    Nov 2002
    Location
    Hermantown, MN
    Posts
    1,777
    Well can you upload a page or point us to a page where this is happening... Because I dont think were getting the whole picture...

    About the underscore vs the hyphen... it is really about a way we normally type, how often do we ever use an underscore in a letter or email or document? the Hyphen has always been there in cases like pre-installed, pre-owned & Czecho-Slovakia... (Lame examples I know but It's all I can come up with on short notice). In the end when your making file names for your site, it just seems natural to write it out as other people may type it in to try and find your site/content.

    Then I came across a little over a month ago I came across this blog update: Which really spoke to me.

    http://www.mattcutts.com/blog/dashes-vs-underscores/

    Since reading this I've seen a number of other bloggers mention and agree with Matts comments.

  7. #7
    Join Date
    Jun 2005
    Location
    United Kingdom
    Posts
    1,043
    Compguy Pete, thanks - I'm convinced. I must admit I have tended to use hyphen or underscore randomly - sloppy, I know. Guess I am stuck with existing pages. Will mend my ways in future.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles