Hi! all,
I am a newcomer for servlet. I am trying to do file upload with servlet.
below is my HTML:
<form action="/servlet/test" method="post"
ENCTYPE="multiaprt/form-data">
<input name="upload" type="File" size="15">
<input name="submit" type="submit" size="15">

in my servlet, I use getContentType(). The result is:
application/x-www-form-urlencoded

also I use servletInputStream to read, the result is:
upload=/pathtothefile/file.txt&submit=Submit+Query

I am puzzled by the results. i cannot find "multiaprt/form-data" and
other stuffs that are processed by FileUploadServlet.java

can anyone give me some hints?

thanks

___________________________________________________________________________
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

Reply via email to