Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!item.isFormField()) {
- String value = (String) item.getName();
- String videoName = new String(
- value.getBytes("iso-8859-1"), "UTF-8");
- if (videoName != "")
- item.write(new File(UPLOAD_DIRECTORY
- + videoName));
- arrayList.add(videoName);
- else if (item.isFormField()) {
- String inputName = (String) item.getFieldName();
- String value = (String) item.getString();
- value = new String(
- value.getBytes("iso-8859-1"), "UTF-8");
- hashMap.put(inputName, value);
- }
Add Comment
Please, Sign In to add comment