<table>
<tr><td>File Name: <INPUT TYPE="file" NAME="ImageFile" VALUE=""
SIZE="39"></td></tr>
</table>
this piece of HTML can be used for inputting a filename.
It triggers a browse window ... user selects it from there
Since its an input type .. it can be read as a parameter in the doPost event
of ure servlet.
If u want to upload text as well as a file ... that's getting into multipart
response issues.
At o reilly there are classes u can download for this.
Within the servlet .. having received the filename read it in as u would a
normal file.
I have encountered no security issues doing it this way.
Sugest reading book : Java servlet programming by Jason Hunter. It deals
with this in good detail.
Paul
-----Original Message-----
From: k.Ranjith Kumar <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, October 05, 1999 4:53 PM
Subject: how to upload a file
>> hi,
>> Can anyone guide me on how to upload a file from a client browser to a
>> server using servlets.Is any security issues involved in that.
>
>>
>> Thanks in advance.
>> ranjith
>>
>
>___________________________________________________________________________
>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