Friday, January 1, 2010

Re: FileUpload widget path name

Hello Shivi. I already faced many issues with the file upload. I moved
to gwtupload. This file name issue will be resolved by using this
For more info go http://code.google.com/p/gwtupload/

On Dec 31 2009, 8:43 pm, El Mentecato Mayor <rogelio.flo...@gmail.com>
wrote:
> 1) As far as I remember, you won't be able to get the full path to the
> filename in all browsers on the client side.  You can do it on the
> server-side (in your servlet).
> 2) I don't think you will be able to do that (assuming your G: drive
> is either mapped to a unix directory using samba maybe, or to another
> windows directory). The form of the path name will depend on the OS of
> the client that sends the files and in your case, I don't think
> there's a way for the browser to know that "G:\abc.psr" corresponds to
> "/home/aa20/abc.psr".
>
> On Dec 30, 6:15 am, Shivi <shivi.chan...@gmail.com> wrote:
>
>
>
> > Hi
>
> > I am trying to use the FileUpload widget and when I call the
> > getFileName() method it returns me the filename without the path name
> > in firefox.
>
> > If I try the same in IE the method returns the filename along with the
> > path.
>
> > e.g: If I browse and select file abc.psr in G: drive .  getFileName()
> > returns abc.psr in firefox and returns G:\abc.psr in IE.
>
> > I would always like to get the path name along with the file name .
> > How can I achieve this?
>
> > Ques2) Is it possible for me to get the unix pathname with a file name
> > instead of Windows? I am using Windows but instead of G:\abc.psr  I
> > would like to see /home/aa20/abc.psr
>
> > Thanks for your help.

--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate