[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Long Filenames with spaces




This is a bug which needs to be addressed pretty soon, however
there is a good workaround (not a perfect workaround.., but I 
thinkl a good one). It involves having the directories indexed with 
thier old MS-DOS 8,3 filenames instead of the long filenames. What
follows here is an old e-mail exchange between me and a user who 
found his way to the definition of the TableHTML object in the file
conf/config.pi3 which is modified with a txt editor to change the
way directoy indexing is done. I believe this definition is
about line 570 in the config.pi3 file:

--------------------
 I did
> find an easy solution. Use the windows alternate name instead (the old
> MS-DOS 8,3 name) in the HREF; you're running this on  windows - right?

Yes.

> Go to the 'Options' line at the end of the directory index definition
> and add 'AltName |' before 'Name | AbbrevSize.....
>
> Then use the %a macro in all HREFs in the FilePattern. Let me know
> how you get on.

Excellent! It works. Ofcourse i cannot save files with long filenames,
but in this case it doesn't really matter.
                                                                        
--------------------

The bit about '%a' means use '%a' instead of '%r' where you specifiy
the HTML for a file link. A little experimentation should sort it out.

Hope this helps, as a workaround,

John


> 
> I'm using Pi3 with the enhanced interface.  Everything is working great except for one thing which is wreaking havoc.
> 
> I use Directory Indexing heavily to pass files between sites.  
> Local users can post to the web via the LAN, and my remote users can post via FTP.  Pretty much everybody checks the website to see if any new files have arrived.  The problem I am running into is that Pi3 can't handle the long filenames with spaces, and no matter how many times I tell my users not to use spaces in thier filenames, they just don't get it.
> 
> I've been trying to find a work-around, but can never get heavily into solving it. Unfortunatly, I was thrown into the job of administrator with no training and 40 systems (NT, Win 95, UNIX, and Alpha) which I do all maintenence on.  In short, I spend 90% of my time just trying to keep things running, and the rest trying to catch up with the massive backlog of work or figure out what the heck I'm doing...
> 
> I am hoping there is a solution which would allow me to continue using the Enhanced interface (and all of my current settings).  The reason being, I'm leaving in about a year and will probably have less than a month to train my replacement (who will in turn probably not have any training).  Simplicity is critical since I can't make any bets on my replacement's knowledge level.
> 
> I've enclosed the error below.  This one came from my home system, where I've installed Pi3 as a test ground.  The error at work is exactly the same, just different filenames...
> 
> -=- -=- -=- -=- -=- -=- -=- -=- -=- 
> 404 Not Found 
> The requested resource does not exist on this server. 
> The Server name stamp is:
> Pi3Web/1.0.2 
> 
> The original URL path was:
> /pidocs/Features/dirtree/Name+with+spaces.txt 
> 
> The mapped physical path was:
> D:\PI3WEB\Pi3Docs\Features\dirtree\Name+with+spaces.txt 
> -=- -=- -=- -=- -=- -=- -=- -=- -=- 
> 
> Sterling Lumpkin
>