Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts

    Maximum length of file names?

    What is the maximum length of file names for websites? I am in the process of re-naming my image files to a more descriptive title, such as img_0590.jpg to 0590_canada_vancouver_harbour_centre.jpg. Adobe ImageReady will trunctuate the long file name to about 25 characters, but Photoshop has no problem with long file names.

    Also is it better to use the underscore or dash? Such as harbour_centre.jpg or harbour-centre.jpg. I believe they are both the same.
    Leonard Whistler

  • #2
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    I'm pretty sure all browsers have a maximum number of characters that can be in the url bar. Now the maximum length of file names depends on the OS of the server of your host, although now you most likely won't find a problem with it (255 character max). Ms-dos FAT was famous for having a max of 11 characters (8.3 filename system). But most modern OS have 265 max.

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    I'm not so sure about the max number of charcters in a browsers addressbar...this one is pretty long, just as an example:http://www.moosejaw.com/moosejaw/pro...ffset=2&s_id=0 and I've seen longer.

    Google found this:
    Microsoft Internet Explorer (Browser)
    Microsoft states that the maximum length of a URL in Internet Explorer is 2,083 characters, with no more than 2,048 characters in the path portion of the URL. In my tests, attempts to use URLs longer than this produced a clear error message in Internet Explorer.
    Firefox (Browser)
    After 65,536 characters, the location bar no longer displays the URL in Windows Firefox 1.5.x. However, longer URLs will work. I stopped testing after 100,000 characters.
    http://www.boutell.com/newfaq/misc/urllength.html


    If ImageReady is truncating your filenames, it must be an Adobe thing? I know some of the stuff I have is longer than 25characters. The only problem I've ever run into was spaces and I see your using _ so that's not a problem.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Quote Originally Posted by Excavator View Post
    If ImageReady is truncating your filenames, it must be an Adobe thing? I know some of the stuff I have is longer than 25characters.
    When I batch process using "save for web" ImageReady will shorten the long file names. I prefer to use ImageReady for thumbnails and may have to re-name the files after.
    Leonard Whistler

  • #5
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    check this out lol

    And btw the reason the longest they could have with 1 file name is 263, is prob because the file couldn't be more than 256 characters because of OS limitations.


  •  

    Posting Permissions

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