commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Cooper <>
Subject Re: DiskFileUpload requires a DefaultFileItemFactory instead of just a FileItemFactory
Date Thu, 04 Mar 2004 06:42:31 GMT
On Wed, 3 Mar 2004, Forrest Girouard wrote:

> Folks:
> Why does the DiskFileUpload require that the factory be of type
> DefaultFileItemFactory instead of FileItemFactory?  This seems
> needlessly restrictive.

It's required because the DiskFileUpload class includes methods that turn
around and invoke the equivalent methods on the DefaultFileItemFactory
class. Those methods are specific to disk-based uploads, and not present
in the generic classes and interfaces.

If you don't want the restrictions of the disk-based implementation, then
you can use FileUpload instead of DiskFileUpload.

Martin Cooper

PS - Please don't cross-post to both commons-dev and commons-user.

> Cheers,
> 	Forrest
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message