You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by rnieuw <rn...@casema.nl> on 2008/10/13 11:26:20 UTC

Uploading a file: no path information available

When using the FileUploadField component for uploading files i cannot get the
full path on the client system 'd:\temp\myFile.pdf' instead i only get the
file name 'myFile.pdf'. 

According to FileItem.getName() Javadoc i should get the full path name if
the browser supports it. I'm using IE7 and i know that IE sends the full
path (when using JSF i can obtain the full path) But unfortunately with
Wicket i cannot get to this information. 
I did a little debugging and i see that the path information is stripped in
the FileUploadBase.getFileName() method. So the browser sends the full path
in its header, but i cannot access this information.

Am i doing something wrong or is the Javadoc not correct?
-- 
View this message in context: http://www.nabble.com/Uploading-a-file%3A-no-path-information-available-tp19951376p19951376.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Uploading a file: no path information available

Posted by Johan Compagner <jc...@gmail.com>.
Dont know about the java doc, but i guess we want to be browser
independend, so that call should result in the same thing no matter
what browser is used.

I find it by the way very strange that you get thr full path, what do
you want with it? And why does IE send it, it shouldnt a website
shouldnt know any thing about the filesystem of the browsers pc.

On 10/13/08, rnieuw <rn...@casema.nl> wrote:
>
> When using the FileUploadField component for uploading files i cannot get
> the
> full path on the client system 'd:\temp\myFile.pdf' instead i only get the
> file name 'myFile.pdf'.
>
> According to FileItem.getName() Javadoc i should get the full path name if
> the browser supports it. I'm using IE7 and i know that IE sends the full
> path (when using JSF i can obtain the full path) But unfortunately with
> Wicket i cannot get to this information.
> I did a little debugging and i see that the path information is stripped in
> the FileUploadBase.getFileName() method. So the browser sends the full path
> in its header, but i cannot access this information.
>
> Am i doing something wrong or is the Javadoc not correct?
> --
> View this message in context:
> http://www.nabble.com/Uploading-a-file%3A-no-path-information-available-tp19951376p19951376.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org