Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 99862 invoked by uid 500); 11 Jun 2002 22:41:16 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 99851 invoked from network); 11 Jun 2002 22:41:16 -0000 From: "Vadim Gritsenko" To: Subject: RE: Vadim : RE: XSP Upload example - I do not understand Date: Tue, 11 Jun 2002 18:41:08 -0400 Message-ID: <00b801c21199$1456b350$0a00a8c0@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <000001c21197$d30d18e0$0400a8c0@CHITHS> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Chitharanjan Das [mailto:cdas@accordiasys.com] > > > Thanks a million.... > > I understand it now... > > Let me try to clarify > > 1. Upload directory is read from init parameter. Hence it is kinda fixed > . > 2. We do not get the control of uploaded files. > As soon as the Cocoon gets a request. The request is processed > for Multipart request processing. Is this how it has to be processed ? > The only way to change this is to provide my own version of multi-part > request processing factory. However, the problem is that you can have > utmost one kind of behaviour. > 3. In my implementation, I need to store the files in different > directories, depending upon the type of files uploaded. How do you > suggest I go ant it... File.renameTo() should work like move, isn't it? Vadim > Thanks in advance, > Chiths > > > > > > > > > > -----Original Message----- > From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net] > Sent: Tuesday, June 11, 2002 1:18 PM > To: cocoon-users@xml.apache.org > Subject: RE: Vadim : RE: XSP Upload example - I do not understand > > > From: Chitharanjan Das [mailto:cdas@accordiasys.com] > > > > Hello Vadim... > > > > If you might explain the upload functionality ....... > > > > 1. Form with multipart data is submitted to upload.xsp > > 2. The form parameters have to be processed. I changed the form > > variable > > name from uploaded_file to files and still it works. > > 3. If I have to do additional processing like throw error if the file > > exists or the file needs to be stored in a specific pattern say > > $upload_directory///_uniqueId. How can I > > customize > > it. > > Look into the source. Start with CocoonServlet: > > HttpServletRequest request = > RequestFactory.getRequestFactory(requestFactoryClass).getServletRequest( > req, > > CocoonServlet.SAVE_UPLOADED_FILES_TO_DISK, > this.uploadDir, > CocoonServlet.ALLOW_OVERWRITE, > CocoonServlet.SILENTLY_RENAME, > this.maxUploadSize); > > > > 4. If there are additional form elements, how do I process them. > > 5. Where is the upload functionality being invoked.. Its kind a vague > > (for my intellect). > > From the servlet, see line(s) above. > > Vadim ... --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: