This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release18.12 by this push:
     new f1fba85  Provide a FileItem entry in 
UtilHttp.getMultiPartParameterMap. (OFBIZ-11346)
f1fba85 is described below

commit f1fba8563755a4c0cf416c6aa64c25b2454f518b
Author: Michael Brohl <mbr...@apache.org>
AuthorDate: Sat Feb 22 11:57:25 2020 +0100

    Provide a FileItem entry in UtilHttp.getMultiPartParameterMap.
    (OFBIZ-11346)
---
 framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java 
b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
index 7bae1ec..3dd049c 100644
--- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
+++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
@@ -276,6 +276,7 @@ public final class UtilHttp {
                             }
                         }
                         multiPartMap.put(fieldName, 
ByteBuffer.wrap(item.get()));
+                        multiPartMap.put("_" + fieldName + "_fileItem", item);
                         multiPartMap.put("_" + fieldName + "_size", 
item.getSize());
                         multiPartMap.put("_" + fieldName + "_fileName", 
fileName);
                         multiPartMap.put("_" + fieldName + "_contentType", 
item.getContentType());

Reply via email to