• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending file through http protocol

 
ricky gonzalez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I was wondering how do I send a file through a browser dialog box? After the user selected the file to be submited from an applet, how do I receive the file from the server side?
Thanks.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U can use a bare html with ENCTYPE="multipart/form-data" as Form attribute.
Example:
<HTML>
<BODY BGCOLOR="#FFFFFF">
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="Upload.jsp">
<INPUT TYPE=FILE NAME="FILE1"><BR>
<INPUT TYPE=SUBMIT VALUE="Upload!">
</FORM>
</BODY>
</HTML>
See http://www.servlets.com/resources/com.oreilly.servlet/index.html
for to get idea about what to be done in the server side.
sakthi
 
ricky gonzalez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much! I really appreciate your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic