Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

upload servlet  RSS feed

Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the error when i executed the upload servlet using below html

<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>

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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!