FileUploadField takes a "FileUpload" model object which has a method called: 
getClientFileName

and as far as the path is concerned, it is saved to a temp file in a temp 
directory

On Feb 3, 2010, at 9:04 AM, Nicola Tucci wrote:

> 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!


To our success!

Mystic Coders, LLC | Code Magic | www.mysticcoders.com

ANDREW LOMBARDI | [email protected]
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu

Eco-Tip: Printing e-mails is usually a waste.

========================================================
This message is for the named person's use only. You must not, directly or 
indirectly, use,
 disclose, distribute, print, or copy any part of this message if you are not 
the intended recipient.
========================================================

Reply via email to