"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: [email protected] For additional commands, e-mail: [email protected]
