aspose file tools*
The moose likes Servlets and the fly likes upload servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "upload servlet " Watch "upload servlet " New topic
Author

upload servlet

navat venu
Ranch Hand

Joined: May 14, 2006
Posts: 66
I am getting the error when i executed the upload servlet using below html

<html>
<body>
<FORM ACTION="venus.venu" ENCTYPE="multipart/form-data" METHOD="POST">
What is your name? <INPUT TYPE=TEXT NAME=submitter> <BR>
Which file do you want to upload? <INPUT TYPE=FILE NAME=file> <BR>
<INPUT TYPE=SUBMIT>
</FORM>
</body>
</html>


please do the needful!!

Error is

COMMONS error rg.apache.commons.fileupload.FileUploadBase$InvalidContentTypeEx
ception: the request doesn't contain a multipart/form-data or multipart/mixed st
ream, content type header is nullerror :java.lang.NullPointerExceptionerror :jav
a.lang.NullPointerException


-------------------- <br />SCJP 1.4<br />SCWCD 1.4<br />SCBCD 5(in progress)<br /> <br />"Do, what you think that you cannot do"
 
 
subject: upload servlet