> If FilePartArray is used the uploaded file is stored inside the
> request object. Fine. But how to access it there?
> HttpRequest.getParameter() returns java.lang.String and thus
> JDBCTypeConversions.storeColumn() tries to open a file named
> "org.apache.cocoon.components.request.multipart.FilePartArray@234768" !

On second thought, FilePartArray vs FilePartFile shouldn't matter - the code
is looking for the superclass FilePart and is only using getSize() and
getInputStream().  I can't find where the action is getting the parameter,
probably because of the input module abstraction.

Normally, one does a org.apache.cocoon.environment.Request.get() on the
parameter name which gets a (FilePart)Object.  I'm not clear enough on
InputModule internals to know what it's doing.

Still, all this makes it weird that it works on my machine and not yours.
Do you have local modifications that aren't checked in that could be making
the difference?

Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to