Re: [Fwd: Re: [fileUpload] Question about file name]

2005-06-10 Thread Frank W. Zammetti
What does the term normalize mean in this context? I thought the issue being discussed was parsing an uploaded filename to get just the filename sans path, as IE sends... where uploads from Windows to a Unix server means that if you use the File.pathSeparatorChar to parse the name, you would

[Fwd: Re: [fileUpload] Question about file name]

2005-06-09 Thread Frank W. Zammetti
Sorry guys, meant for this to go to the list only... On Thu, June 9, 2005 4:35 pm, Martin Cooper said: Nope. If the upload came from a Windows system and the server is running on *nix, then the system separator is *not* what you want. You'd be looking for '/' in a path that uses '\' as the

Re: [Fwd: Re: [fileUpload] Question about file name]

2005-06-09 Thread Dakota Jack
Frank, If the File class does not normalize the string used to create the File, then there is a bug. There seems to be a bug in one version of Linux and that has been reported to Sun. The constructor for File is as follows: public File(String pathname) { if (pathname == null) {