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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

mbrohl
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 <[hidden email]>
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());