Sir, Cocoon places the uploaded file into a default directory. The default directory is C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\cocoon\cocoon-files\upload-dir.
I use a Cocoon action to "pick up" the uploaded file from the default directory and place it where ever i want it - i attach it into an email, i put it into MYSQL. in your case, you would place it into Xindice. Create a web page containing a form tag such as <form name="form_{@name}" action="{@handler}" method="POST" enctype="multipart/form-data"> and an HTML component <input type="file" name="{@name}" value="{@name}"/><br/> With the two items above included into a web page, on submission of that page, cocoon will automatically place the MimeBodyPart into the directory noted above. Need anything else, please holler. Ray > -----Original Message----- > From: Sreenivasan N. [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 12, 2002 1:07 AM > To: [EMAIL PROTECTED] > Subject: How can i have both upload and saving to Xindice on click of a > button? > > > Hi all > > I am planning to design a user interface where the user upload documents > say pdf, word, excel. I will also capture some information like author > name, description entered by the user which then get saved in Xindice. > > I want to do the upload and the save on click of a button. Any idea to do > this or any method > > Thanks in advance > > Regards > Sreenivasan > > > > > > > > "Attitudes are much more important than aptitudes." > "Nothing is impossible for a willing heart" > > Sreenivasan N. > Sony SARD > Ext 5816 > > Email. [EMAIL PROTECTED] > Per: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>