org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
当前的请求 不包含 multipart/form-data 或者 multipart/mixed stream ,并且contenttype 为null .
form action="$!path/saveVideo.do" name="myForm" method="post" id="myForm">
<input id="fileUpload" type="file" name="fileUpload" />
<input type="button" ID="btnUpload" value=" 上传 "
OnClick="return CheckForTestFile();" />
</form>
解决方案:页面表单中加 enctype="multipart/form-data" 并且提交方式为POST