Multi Part Input Parameters not Available in Groovy Event

(OFBIZ-5048)

This change provides easier access to the FileItem by not wrapping it
into a buffer.
This commit is contained in:
Michael Brohl
2020-01-31 15:51:51 +01:00
parent b0aff701d0
commit 832217135a
@@ -275,7 +275,7 @@ public final class UtilHttp {
fileName = fileName.substring(lastIndex + 1);
}
}
multiPartMap.put(fieldName, ByteBuffer.wrap(item.get()));
multiPartMap.put(fieldName, item);
multiPartMap.put("_" + fieldName + "_size", item.getSize());
multiPartMap.put("_" + fieldName + "_fileName", fileName);
multiPartMap.put("_" + fieldName + "_contentType", item.getContentType());