cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <cocoonge...@yahoo.com>
Subject Re: question about uploading
Date Fri, 18 Oct 2002 12:36:59 GMT
I just looked through the archives and didn't find
anything like that.  Can you provide a link to what
you were talking about?  The only things I've seen are
a description of how to use the DatabaseAdd action to
upload a file to a database (which shouldn't work
correctly), and an action to change the directory a
file is saved in (which doesn't sound like what you
need).

Currently, all file uploads are saved to the
upload-dir configured in web.xml (or a default under
the work directory) automatically before sitemap
components get to them.  You will need to write an
action that gets the FilePartFile out of the request
object and calls its getInputStream() method.  For a
start, you should be able to use the action described
at:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101878098524370&w=2,
or the SourceUploadAction or SourceMultiAction in the
scratchpad.

A few of us have been reworking file upload behavior
recently although the changes aren't finished totally,
and are not even in cvs yet.  You can check out the
discussion by searching the cocoon-dev archives for
SAVE_UPLOAD_FILES and file upload follow up.

Geoff Howard

--- Martin Geissler <M.Geissler@wika.de> wrote:
> There is a mail in the mail-archive with an Action
> code that does what
> you want.
> 
> Have a Look
> 
> Martin
> 
> >>> jtacaoio@bi.ehu.es Freitag, 18. Oktober 2002
> 12:48:59 >>>
> Hello,
> 
> I want to upload an xml file to cocoon in order to
> apply some
> transformations to it. I have seen upload.xsp
> example, but I don't want
> to save the file in the server, just take the input
> stream in the http
> request and pass it to a transformer. How could it
> be done?
> 
> Oskar 
> 
>
---------------------------------------------------------------------
> Please check that your question  has not already
> been answered in the
> FAQ before posting.    
> <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:    
> <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:  
> <cocoon-users-help@xml.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message