Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Is there a limit on characters in a filename?

Reply
Thread Tools

Is there a limit on characters in a filename?

 
 
patrick j
Guest
Posts: n/a
 
      09-30-2006
Hi

I'm wondering if there is a limit on the number of characters in a
filename for use in a web-site?

I used to do web-site creation on an amateur basis using the classic
Mac OS and on that there was a limit of the number of characters in the
filename so the issue never arose.

However now I'm using OS X I have found myself creating quite long
filenames.

Should I be concerned about this?

Thank you

--
Patrick
Brighton, UK

 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      09-30-2006
Scripsit patrick j:

> I'm wondering if there is a limit on the number of characters in a
> filename for use in a web-site?


On the web, there are URLs, not files. If URLs happen to map to filenames in
a particular server, that's coincidental.

There have been reports on browser limitations with URLs longer than 2,000
characters. If they are an issue to you, then you (or your users) surely
have serious issues.

> However now I'm using OS X I have found myself creating quite long
> filenames.
>
> Should I be concerned about this?


Yes, definitely. What makes you create quite long filenames? They won't make
your site more useable, will they? Did you ever try writing down even a 200
characters long messy URL in order to be able to visit later, after you
found something interesting when using a foreign computer?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      09-30-2006
In article <dbyTg.23376$>,
"Jukka K. Korpela" <> wrote:

> Scripsit patrick j:
>
> > I'm wondering if there is a limit on the number of characters in a
> > filename for use in a web-site?

>
> On the web, there are URLs, not files. If URLs happen to map to filenames in
> a particular server, that's coincidental.
>
> There have been reports on browser limitations with URLs longer than 2,000
> characters. If they are an issue to you, then you (or your users) surely
> have serious issues.
>
> > However now I'm using OS X I have found myself creating quite long
> > filenames.
> >
> > Should I be concerned about this?

>
> Yes, definitely. What makes you create quite long filenames? They won't make
> your site more useable, will they? Did you ever try writing down even a 200
> characters long messy URL in order to be able to visit later, after you
> found something interesting when using a foreign computer?


Your point about urls is good but this is a different issue to at
least one particular one in the question: apart from url length
limits, apart from user difficulties, what are the limits on file
names themselves? To do with particular server set ups? I have
wondered this myself. Never a problem in fact because I try to
keep the names short. But it is a bit of a temptation for Mac OS
X users (perhaps others too) and can conceivably be useful for
private file management. The question of typing urls need not
actually arise, this is a different issue.

--
dorayme
 
Reply With Quote
 
richard
Guest
Posts: n/a
 
      10-01-2006

"Jukka K. Korpela" <> wrote in message
news:dbyTg.23376$. ..
> Scripsit patrick j:
>
>> I'm wondering if there is a limit on the number of characters in a
>> filename for use in a web-site?

>
> On the web, there are URLs, not files. If URLs happen to map to filenames
> in a particular server, that's coincidental.
>
> There have been reports on browser limitations with URLs longer than 2,000
> characters. If they are an issue to you, then you (or your users) surely
> have serious issues.
>
>> However now I'm using OS X I have found myself creating quite long
>> filenames.
>>
>> Should I be concerned about this?

>
> Yes, definitely. What makes you create quite long filenames? They won't
> make your site more useable, will they? Did you ever try writing down even
> a 200 characters long messy URL in order to be able to visit later, after
> you found something interesting when using a foreign computer?



So I run across this url in a newspaper and it has a length of 300
characters. I'm supposed to hand type all of this in? Like hell I will.
chances are the newspaper won't even print it to begin with.


 
Reply With Quote
 
Thomas Jollans
Guest
Posts: n/a
 
      10-03-2006
On Sat, 30 Sep 2006 18:38:37 +0100, patrick j
<> let this slip:

> Hi
>
> I'm wondering if there is a limit on the number of characters in a
> filename for use in a web-site?
>
> I used to do web-site creation on an amateur basis using the classic
> Mac OS and on that there was a limit of the number of characters in the
> filename so the issue never arose.
>
> However now I'm using OS X I have found myself creating quite long
> filenames.
>
> Should I be concerned about this?


As already pointed out, files are irrelevant to the WWW, they are merely a
possibility to organize data which may or may not be used on the server
and could by coincidence be used to map URIs to data. (I avoided the term
UR*L* as it is not necessarily given that the data has a location that is
concievable from the URI, which may or may not actually uniformly identify
the data, now I come to think of it.

Back to the question:
YES, it is a problem, as URIs should in most cases be easy to remember or
at least easy to type, not to mention permament.

NO, as *NIX (what runs most of the web) systems all, in theory, allow
infinitely long file names, which ispired Microsoft's Windows to allow
long(ish?) file names as well - which should collectively cover 99.99% of
the web. most of the rest probably has an 8.3 file name restriction, but
you'd know due to the careless violation of the rule you'd been guilty of.

--
Thomas Jollans alias free-zombie
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      10-03-2006
In article <efukvv$ima$03$>,
"Thomas Jollans" <> wrote:

> On Sat, 30 Sep 2006 18:38:37 +0100, patrick j
> <> let this slip:
>
> > Hi
> >
> > I'm wondering if there is a limit on the number of characters in a
> > filename for use in a web-site?
> >


> NO, as *NIX (what runs most of the web) systems all, in theory, allow
> infinitely long file names, which ispired Microsoft's Windows to allow
> long(ish?) file names as well - which should collectively cover 99.99% of
> the web. most of the rest probably has an 8.3 file name restriction,


Finally, an answer!

--
dorayme
 
Reply With Quote
 
Chris F.A. Johnson
Guest
Posts: n/a
 
      10-03-2006
On 2006-09-30, patrick j wrote:
> Hi
>
> I'm wondering if there is a limit on the number of characters in a
> filename for use in a web-site?
>
> I used to do web-site creation on an amateur basis using the classic
> Mac OS and on that there was a limit of the number of characters in the
> filename so the issue never arose.
>
> However now I'm using OS X I have found myself creating quite long
> filenames.
>
> Should I be concerned about this?


Unix systems (which most web servers run on) usually have a
maximum length for filenames defined by the NAME_MAX macro. A
typical value is 255. There is also the PATH_MAX macro, typically
4095, which is the maximum length for the entire path to a file.


--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
 
Reply With Quote
 
patrick j
Guest
Posts: n/a
 
      10-04-2006
On Wed, 4 Oct 2006 00:23:43 +0100, Chris F.A. Johnson wrote
(in article <v08bv3->):

> Unix systems (which most web servers run on) usually have a
> maximum length for filenames defined by the NAME_MAX macro. A
> typical value is 255. There is also the PATH_MAX macro, typically
> 4095, which is the maximum length for the entire path to a file.


Thank you

The longest filename I have has 37 characters including the .html
suffix.

Should be okay I think.

--
Patrick
Brighton, UK

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit asp:label Databinder.Eval characters displayed John ASP .Net 3 07-23-2009 02:59 AM
Some shareware has a time limit and the software will not work after the time limit has expired. anthony crowder Computer Support 20 01-16-2007 10:01 AM
Limit the number of characters given a "Box" size Mark ASP .Net 2 01-31-2006 06:36 PM
c program, file size limit, how to solve? 2G bytes limit. guru.slt@gmail.com C++ 1 06-27-2005 11:05 PM
Limit to 150 characters in multi-line textbox Mark ASP .Net 4 08-04-2003 02:39 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57