commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Cooper <mart...@apache.org>
Subject RE: DiskFileUpload requires a DefaultFileItemFactory instead of just a FileItemFactory
Date Sun, 07 Mar 2004 23:31:16 GMT
On Fri, 5 Mar 2004, Noel J. Bergman wrote:

> > > Please file an enhancement request against the Struts FileUpload
> > > component, so that I can track this.
>
> Martin, I have a small utility class that tracks a filename and associated
> marker object.  You can't use just a File, of course, since File instances
> are often far more transient than the objects used to perform I/O.  But you
> could do FileCleaner.track(myFile, myIOObject), and when myIOObject goes
> away, the file referenced by myFile will be removed.
>
> Helpful to your situation?

Possibly, yes. The myIOObject could be a FileItem, for example?

Is this something that would make sense as part of Commons IO?

--
Martin Cooper


>
> 	--- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message