You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by James Sherwood <js...@romulin.com> on 2004/10/19 20:16:43 UTC

I upload file question / bug?

Hello,

I develop on windows and our production servers are Linux.

In creating a file uploading service I used the class IUploadFile.

I store the filename in the database by using iuploadfile.getFilename();

On windows this returns the filename(after the last slash) BUT on linux it
returns the whole path

Is this a bug or is this a standard linux/windows problem?

I worked around it by using lastIndexOf  + 1 and it works wether you are on
windows or linux

Just inquiring,

James



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: I upload file question / bug?

Posted by Danny Mandel <dm...@tolweb.org>.
I've seen this behavior on linux servers when uploads occur from a 
Windows client.  I seem to recall having seen this in other web 
development I've done so I don't think it's really a Tapestry "issue".

Danny

James Sherwood wrote:

>Hello,
>
>I develop on windows and our production servers are Linux.
>
>In creating a file uploading service I used the class IUploadFile.
>
>I store the filename in the database by using iuploadfile.getFilename();
>
>On windows this returns the filename(after the last slash) BUT on linux it
>returns the whole path
>
>Is this a bug or is this a standard linux/windows problem?
>
>I worked around it by using lastIndexOf  + 1 and it works wether you are on
>windows or linux
>
>Just inquiring,
>
>James
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org