Technically you cann't get the full path of the file using javascript. you
are allowed the access the relative name of the file
only.it is also read only (security reason). otherwise you could upload a
file without the knowledge of the user.

see http://www.cs.tut.fi/~jkorpela/forms/file.html for reference

2010/2/3 Nicola Tucci <nytrus...@gmail.com>

> Hi all,
> I'm using a FIleUpload form component in order to save the full client
> filename (path + filename, i.e.
> /home/jdoe/myfiles/MyUploadableDocument.pdf), but for what I can see, I can
> retrieve only the filename using FileItem.getName().
> I've tried to deeply debug wicket code to find the full path, but I only
> find client filename, server temp name, content-type, size.
>
> Someone on this forum states that browsers often send only the filename,
> not
> the full path (security reason??), but how can servers bind the source file
> without the full name? It must be somewhere, maybe in the servlet
> request...
>
> Besides, there is a smarter way to retrieve the full name (the one that
> appears in the input component!) without perform the upload? My use case
> oblige me to use FileUpload form component because the user use browser's
> popup search dialog.
>
> Thanks to all,
> BYE!
>



-- 
----
Anantha Kumaran

Reply via email to