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?
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 -
should do it.
<img src="images/filename.gif" alt="whatever"
width="xxx" height="yyy" border="z">
Insert your own values for x, y, and z of course.
Double check in design view, then upload to server and check again.
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.
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?
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.
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.
Since reading this I've seen a number of other bloggers mention and agree with Matts comments.
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)