On Wed, May 26, 2010 at 2:51 PM, mdh <mhorn...@ntlworld.com> wrote:

>
> "create your own FileItemFactory that returns a
> DatabaseImageStorageFileItem
> (which you'll have to create).  When the request is processed, your
> DatabaseImageStorageFileItem
> will be created"
>
> I understand your idea, but I still have the problem of how do I make the
> request use my FileItemFactory.
>
> Looking at the code for MultipartServletWebRequest (which is the request
> type used for a file upload) it hard codes the factory used (line 94 in
> 1.4.1):
>   DiskFileItemFactory factory = new DiskFileItemFactory();
>
> Does wicket provide some hook that I could use to insert my own
> FileItemFactory, so that it will use that instead of the
> DiskFileItemFactory? It might just be that I don't understand wicket well
> enough and I'm looking in the wrong place.
>
> I use FileUploadField on the form, but I can't see anything in there that
> allows a factory to be specified.
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/wicket-file-upload-tp2230621p2232247.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
The latest 1.4.9 has a constructor in MultipartServletWebRequest that takes
a FileItemFactory.  I'm not sure how long that constructor has been there.

-- 
Jeremy Thomerson
http://www.wickettraining.com

Reply via email to