struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Johnson <johnson.aar...@gmail.com>
Subject Re: [jira] [Updated] (WW-4717) Refactor file upload support to allow create virtual representation of java.io.File
Date Mon, 21 Nov 2016 19:12:39 GMT
Is it possible to have a converter from UploadedFile to File? The
UploadedFile has a getContent() method that returns the File object.

On Mon, Nov 21, 2016 at 7:28 AM, Christoph Nenning <
Christoph.Nenning@lex-com.net> wrote:

> Surly there will be users complaining. We should at least provide a config
> switch and deprecation warning.
>
>
>
> Regards,
> Christoph
>
>
>
> > From: Lukasz Lenart <lukaszlenart@apache.org>
> > To: Struts Developers List <dev@struts.apache.org>,
> > Date: 21.11.2016 10:58
> > Subject: Re: [jira] [Updated] (WW-4717) Refactor file upload support
> > to allow create virtual representation of java.io.File
> >
> > I would like to refactor file upload logic to use a virtual
> > representation of a file but this requires changes in users'
> > applications as well, instead of using java.io.File they will have to
> > switch to UploadedFile Struts class.
> >
> > Not sure if it is worth doing :\
> >
> >
> > Regards
> > --
> > Ɓukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> >
> > 2016-11-21 10:09 GMT+01:00 Lukasz Lenart (JIRA) <jira@apache.org>:
> > >
> > >      [ https://issues.apache.org/jira/browse/WW-4717?
> > page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> > >
> > > Lukasz Lenart updated WW-4717:
> > > ------------------------------
> > >     Summary: Refactor file upload support to allow create virtual
> > representation of java.io.File  (was: Refactor file upload support
> > to allow create virtual representation of java.ioFile)
> > >
> > >> Refactor file upload support to allow create virtual
> > representation of java.io.File
> > >>
> >
> ------------------------------------------------------------
> -----------------------
> > >>
> > >>                 Key: WW-4717
> > >>                 URL: https://issues.apache.org/jira/browse/WW-4717
> > >>             Project: Struts 2
> > >>          Issue Type: Improvement
> > >>          Components: Core
> > >>    Affects Versions: 2.5.5
> > >>            Reporter: Lukasz Lenart
> > >>            Assignee: Lukasz Lenart
> > >>             Fix For: 2.5.6
> > >>
> > >>
> > >> Right now file upload logic is using {{java.io.File}} directly to
> > represent uploaded files but access to this class is restricted in
> > some cloud environments  e.g. Google AppEngine
> > >
> > >
> > >
> > > --
> > > This message was sent by Atlassian JIRA
> > > (v6.3.4#6332)
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
>
> This Email was scanned by Sophos Anti Virus
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message