//创建磁盘文件工厂
DiskFileItemFactory factory = new DiskFileItemFactory();
//实例化高级文件上传类API
ServletFileUpload up = new ServletFileUpload(factory);
//从request中获取参数信息
List<FileItem> files = up.parseRequest(request);
for(FileItem item : files){
//表单传输参数
if(item.isFormField()){
}else{
//上传文件内容
}
}