Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 21474 invoked by uid 500); 12 Dec 2001 14:10:37 -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 21461 invoked from network); 12 Dec 2001 14:10:36 -0000 Message-ID: <20011212200911.13674.qmail@dominica.leonid.de> References: <001501c182d8$f7f85b40$0c64140a@gmservice.de> In-Reply-To: <001501c182d8$f7f85b40$0c64140a@gmservice.de> From: "tek" To: cocoon-users@xml.apache.org Subject: Re: C2 file upload problem Date: Wed, 12 Dec 2001 20:09:11 GMT Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Seems I have to describe the problem once again: Uploading a file with the cocoon2 upload-example seems to work ok. The uploaded file appears in the file-list. But when you look closer, you notice, that uploaded file is empty (only containing some information about the original file type, like GIF89A) So far I have made the same experience as Vladimir. But I just made a second erperience: The Problem descibed above is somehow in conjunction with the use of mod_webapp. For when acessing the upload side directly from tomcat, the upload works as it should. These are the symptoms. I just don�t know the cause, as I know very little about how mod_webapp works or how the cocoon file-upload works. Configuring an absolute path has just been an idea, that I wanted to try next , ...full of despair... but it is possible, that this won't change anything... So, if someone succeeded uploading although using mod_webapp, please let me know how... thanks Leo Max Larsson writes: > Hi, > > within your web.xml file you can change the > upload directory. It is passed as a parameter > to the Servlet. If you can even set absolute paths > i don't know. > > HTH > > > Max > > > Here a snipet from my web.xml > > .... > > Cocoon2 > Cocoon2 > The main Cocoon2 servlet > > [... removed a lot of other init-param... ] > > > upload-directory > /WEB-INF/upload-dir > > > ... > > > > > -----Original Message----- > > From: tek [mailto:tek@leonid.de] > > Sent: Mittwoch, 12. Dezember 2001 05:13 > > To: cocoon-users@xml.apache.org > > Subject: Re: C2 file upload problem > > > > > > > > hi, > > I can guess the problem: > > > > I've got the same symptoms if I access my upload-site via apache1.3 + > > mod_webapp. But if I request the site directly from tomcat > > (port 8080) the > > upload works perfectly. > > > > I know this in not the solution. Maybe anyone knows if it is > > possible to > > configure an upload-directory with an absolute path in > > web.xml. Thats what > > I want to try next to solve the problem. > > > > leo > > > > > Hi ! > > > > > > I tried to upload file with cocoon example upload.xsp. > > > When i post request i got file with 1 byte length in upload > > directory. > > > Cocoon logs reports right size for request ... (C2rc1a, > > tomcat 4.0, w2k) > > > > > > May be someone can guess problem and help ? > > > > > > Thank you in advance, > > > Vladimir > > > > --------------------------------------------------------------------- > > Please check that your question has not already been answered in the > > FAQ before posting. > > > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: