title: form enctype="multipart/form-data" returning contentType null in JSP RAD environment
body: <p>I'm following an example to do FileUpload on JSP page on this link: <a href="http://www.tutorialspoint.com/jsp/jsp_file_uploading.htm" rel="nofollow">http://www.tutorialspoint.com/jsp/jsp_file_uploading.htm</a> It looks pretty straightforward and I'm able to call the uploadFile.jsp to habdle the upload except that the request.getContentType() is returning null. Seems like the enctype="multipart/form-data" or encoding="multipart/form-data" is not setting the content type correctly. Here's the form tag in my jsp:</p>
  
  <pre><code>&lt;h3&gt;File Upload:&lt;/h3&gt;
  Select a file to upload:&lt;br/&gt;
  &lt;form name="uploadform" method="post" encoding="multipart/form-data" enctype="multipart/form-data"  &gt;
  &lt;input type="file" name="file" size="50" /&gt;&lt;br /&gt;
  &lt;input type="button" class="button1" value="Upload File" onClick="submitFileUpload();" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And here's the snippet from the uploadFile.jsp where I'm getting null:
  String contentType = request.getContentType();</p>
  
  <p>I'm using JSP in RAD environment and this doesn't seem to work in either IE 10 or CHrome. I've searched extensivley on this error but couldn't find any reason why this may be happening. Looks like it works for most people. Please help!</p>