title: java.io.IOException: Posted content type isn't multipart/form-data
body: <p>I have written a jsp page  for uploading image using POST method by using <code>com.oreilly.servlet.multipart.MultipartParser</code> actually file is successfully uploading and post values also getting correctly but it is throwing a exception </p>
  
  <pre><code>java.io.IOException: Posted content type isn't multipart/form-data 
  MultipartParser mp = null;
  try{
   mp = new MultipartParser(request, 1*1024*1024); // 10MB
   }
   catch(Exception e){
   out.println("Exception1:"+e);
   }
  while ((part = mp.readNextPart()) != null) {
          name = part.getName();
          if (part.isParam()) {
              ParamPart paramPart = (ParamPart) part;
              value = paramPart.getStringValue();
              if(name.equals("companyname") &amp;&amp; value != null){                
  
              }
  
              if(name.equals("version") &amp;&amp; value != null &amp;&amp; name != null){
  
              }
  
          }
          else if (part.isFile()) {
              String getimagelogovalue="";
              FilePart filePart = (FilePart) part;
              String fileName = filePart.getFileName();
              if (fileName != null) {
  
              }
              else {}
              out.flush();
          }
      }   
  </code></pre>