[Xitami] Alias Directories & File Names
Wally Nickel
xitami@lists.xitami.org
Thu, 27 Sep 2001 22:25:33 -0400
Ewen,
Well, after a bit of deliberation, and after some quick trials and tests,
it certainly does appear that .....
Simply changing the applicable references in the 'httpdir.gsl' file
from "nameurl" to "name" does the trick on my system.
The directory lists, and all of the file downloads now function as
typically expected. A file named as "qwerty.exe" downloads or runs under
that same name, and any other file(name) performs or downloads as that same
file(name). No more double extensions or redundant/different extensions.
Thanks for that terrific tip and pointer.
Regards,
Wally..
-----Original Message-----
From: xitami-admin@lists.xitami.org
[mailto:xitami-admin@lists.xitami.org]On Behalf Of Ewen McNeill
Sent: Monday, September 26, 2001 6:51 AM
To: xitami@lists.xitami.org
Subject: Re: [Xitami] Alias Directories & File Names
In message <CMEGIPIFEBJBCIKDJKNDAENECDAA.wnickel1@home.com>, "Wally Nickel"
writes:
>The only (minor) problem, actually a bit of a nuisance relates to the use
of
>ALIAS directory where DIRECTORY lists are enabled so that the downloadable
>files are listed. The ALIAS lists and ALIAS directories portion works
well,
>but whenever a file gets downloaded, the extension is either duplicated
>(i.e. "song.mp3" becomes "song.mp3.mp3") or an additional character is
added
>to the extension (i.e. "file.exe" becomes "file.exe(1)" ).
The extra extension tends to happen if you already have the file
downloaded to that directory; at least one common webbrowser handles this
situation by appending "(1)" to the filename.
The double extension issue is more puzzling; IIRC this used to happen
with Xitami 2.5b5 (it may still happen there), due to an extremely
conservative test for which characters don't need to be escaped in the
filename, resulting in the filename being escaped, and another extension
added by the webbrowser. (If you think this is hitting you, in 2.5b5, try
substituting "name" for "nameurl" in httpdir.gsl and restarting.)
Off hand I can't think of anything in Xitami 2.4d9 which would cause
this effect, except possibly if the same code that causes the 2.5b5
effect is also in 2.4d9.
Does anyone else see this extension doubling in 2.4d9?
Ewen
--
Ewen McNeill, Technical Consultant, iMatix Corporation www.imatix.com
--
Xitami Users Mailing List -- For Xitami support
To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami