Hi Brendan,
sorry, this is an old question (look here for example:
http://apache-pivot-users.399431.n3.nabble.com/File-upload-per-rfc-1867-td2667943.html
) ... in short I think that the best option is to use some library to
simplify/implement the file upload in the full RFC way, using
something like the Apache HttpClient, and maybe even Apache Commons
FileUpload at Server-side.

Then, wrap it inside a PostQuery() , change the request mime type to
that required by your server, etc ... but at this point I don't know
if Pivot PostQuery add a great value to your request.

Some info here:
http://stackoverflow.com/questions/2304663/apache-httpclient-making-multipart-form-post


Probably File Upload (in a full rfc implementation) it's something
that we could try enhance in core Pivot (at least in Demos, or in a
wiki page), so if you have something to share with us, please do it.
But usually we don't want to introduce new dependencies, so we have to
see if/how to do (could be something for apache-extras).


Keep us updated.

Bye

Reply via email to