boolean utf8 = false;
String contentType = null;
Map<String, String[]> params = new HashMap<String, String[]>();
InputStream fileStream = null;
ServletFileUpload upload = new ServletFileUpload();
FileItemIterator iter = upload.getItemIterator(request);
while (iter.hasNext()) {
FileItemStream fileItemStream = iter.next();
if (fileItemStream.isFormField()) {
String fieldName = fileItemStream.getFieldName();
if ("content".equals(fieldName)) {
utf8 = true;
String[] parser = params.get("parser");