Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A4AD718801 for ; Thu, 3 Mar 2016 17:14:18 +0000 (UTC) Received: (qmail 63349 invoked by uid 500); 3 Mar 2016 17:14:18 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 63313 invoked by uid 500); 3 Mar 2016 17:14:18 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 63263 invoked by uid 99); 3 Mar 2016 17:14:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2016 17:14:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6362D2C1F5A for ; Thu, 3 Mar 2016 17:14:18 +0000 (UTC) Date: Thu, 3 Mar 2016 17:14:18 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4609) Getting access to fileitem objects through MultiPartRequestWrapper MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4609?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1517816= 1#comment-15178161 ]=20 Lukasz Lenart commented on WW-4609: ----------------------------------- This isn't a good idea, it will produce a strong coupling between parties. = Maybe try to use the same code as in the {{FileUploadInterceptor}} to acces= s a {{File}} object? > Getting access to fileitem objects through MultiPartRequestWrapper > ------------------------------------------------------------------ > > Key: WW-4609 > URL: https://issues.apache.org/jira/browse/WW-4609 > Project: Struts 2 > Issue Type: Improvement > Reporter: Filippo Munaf=C3=B2 > Fix For: 2.3.25, 2.5 > > > Can you please change the MultiPartRequestWrapper, and the > JakartaMultiPartRequest, adding a new method? The signature should be: > public List getFileItems(String) > Our action ancestor class needs to get access to the "files" properties o= f JakartaMultiPartRequest through the MultiPartRequestWrapper. Otherwise we= need to code something similar to what is done by the FileUploadIntercepto= r.intercept and create again the fileitem needed by our application code. -- This message was sent by Atlassian JIRA (v6.3.4#6332)