cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Aston" <jeremyas...@yahoo.co.uk>
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
param
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
away!

Cheers

Jeremy




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message