You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mb...@apache.org on 2020/02/22 11:01:44 UTC

[ofbiz-framework] branch release17.12 updated: Provide a FileItem entry in UtilHttp.getMultiPartParameterMap. (OFBIZ-11346)

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

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


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

commit 0dd0264d7df9f102c51c720b9e819f2129355788
Author: Michael Brohl <mb...@apache.org>
AuthorDate: Sat Feb 22 12:01:04 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 97c5a0f..ef373b4 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());