Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Re: Photoshop Save For Web' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Re: Photoshop Save For Web
Authored by: Paul Burney on Mar 31, '02 12:47:23PM
Ever notice that Photoshop with its "save for the web" command will always change a "/" character in filename to "_" as a default?

Most Web servers won't allow slashes in filenames because on the web, a slash indicates a directory. For example, the url:

http://example.com/one/two/three.html

tells the server to look at the root of the server docs in a directory named one, then in a directory named two, for a file named three.html. If your file were named two/three.html the server wouldn't find it because it's looking in the non-existant directory two for it instead of in directory one.

Since "Save for Web" is supposed to make files that you can serve over the web, of course they strip out the slash. Other things to avoid in filenames on the web include percent signs (%) and pound signs (#) which each have a special meaning on the web.

Hope that helps.



[ Reply to This | # ]