I suspect what you want is the path of the file as it's stored on the
client, but browsers don't generally make that path available to the
server (out of security concerns presumably). You get the name and
that's it. If you really need the original path, you could use an
applet to handle the upload, like
http://www.infomentum.com/appletfile/. It has other goodies too like
directory-at-a-time uploading.
-jh-
Martin Pribyl wrote:
>
> Hi, I have a problem with obtaining a full path of a file specified in a
> file input element of a form. I use Jason Hunter's servlets from
> www.servlets.com for handling the form. There is a FilePart class with a
> method getFileName(). But this method returns just the name of the file, not
> the full path. Is there some way to obtain the full path from the file
> element?
> Thank you,
> Martin Pribyl.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html