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.nenn...@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 <lukaszlen...@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) <j...@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-unsubscr...@struts.apache.org
> > For additional commands, e-mail: dev-h...@struts.apache.org
> >
>
> This Email was scanned by Sophos Anti Virus
>

Reply via email to