cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Aston" <>
Subject More control over iploading files
Date Sat, 13 Apr 2002 00:41:41 GMT
Hi all,

I've been mucking around with some file upload stuff and noticed a change in
behaviour since Joren's replacement for maybeupload was done back in Feb.
Before the change it was possible to still get hold of the reference to the
uploaded file from the request object in an action thus enabling you to
rewrite the file anywhere e.g. into a db BLOB.  This is now not easily
possible since the request does not contain the right stuff any more.  I
note from the archives that when the code was submitted the suggestion was
that control could be passed to an action to determine how and where to
write the file but the final code is driven by the web.xml parameters.

I would really like to have the ability to chose as often as each request
where the uploaded file is to be put and will have a more detailed look at
the code over the weekend to see what might need doing.  To me it seems
there are a number of possible choices:

1. a small patch to the MultipartRequest stuff that leaves the required info
in the request and then an action to do an upload to a place specified via a
2. an alternative MultipartRequest handler
3. a complex action that works if SimpleRequestHandler is used and not
Multipart - i.e. shift the work along (urgh?)
4. something else maybe

Just interested on soliciting some thoughts on this whilst I tip tappity



Do You Yahoo!?
Get your free address at

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

View raw message