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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user