Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 25122 invoked from network); 16 Jul 2008 10:26:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2008 10:26:03 -0000 Received: (qmail 33550 invoked by uid 500); 16 Jul 2008 10:25:57 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 33474 invoked by uid 500); 16 Jul 2008 10:25:56 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Delivered-To: moderator for users@cocoon.apache.org Received: (qmail 54091 invoked by uid 99); 16 Jul 2008 08:29:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Sender: tigre@alessandro.vincelli.name From: "Alessandro Vincelli" To: users@cocoon.apache.org Subject: RE: Apache commons-fileupload returns an empty list X-Mailer: Quality Web Email v3.1s X-Originating-IP: 193.172.9.9 Date: Wed, 16 Jul 2008 10:28:36 +0200 Message-id: <487db134.42.2ed6.191034974@webmaildh5.aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: smtp1.aruba.it 1.6.2 0/1000/N X-Virus-Checked: Checked by ClamAV on apache.org Are only suggestions :) I'm using Cforms and the upload-widget in cocoon 2.2, in order to work with upload, I overrode several configurations on the file core.properties the default value are: org.apache.cocoon.uploads.enable=true org.apache.cocoon.uploads.autosave=true org.apache.cocoon.uploads.overwrite=rename org.apache.cocoon.uploads.maxsize=102400 and another suggestion from[1] Cform upload: Also, don't forget to put the enctype attribute as multipart/form-data in the ft:form-template element, inside the template file. I repeat, these are only suggestions about cocoon upload features, I don't know your enviroment. Bye, Alessandro [1]http://cocoon.apache.org/2.2/blocks/forms/1.0/483_1_1.html ----- Original Message ----- Da : "Magnus Haraldsen Amundsen" A : Oggetto : RE: Apache commons-fileupload returns an empty list Data : Wed, 16 Jul 2008 08:56:09 +0200 > I'm using 2.2, but is is because of the default max size > that it doesn't return any items? > > -----Original Message----- > From: tigre@alessandro.vincelli.name > [mailto:tigre@alessandro.vincelli.name] On Behalf Of > Alessandro Vincelli Sent: 15. juli 2008 17:09 > To: users@cocoon.apache.org > Subject: re: Apache commons-fileupload returns an empty > list > > > Which version of cocoon are you using? > In cocoon 2.2 I overrode this properties, by default the > value is 100kb. > > #upload-max-size overriding cocoon core properties > org.apache.cocoon.uploads.maxsize=10240000 > > Bye > Alessandro > > ----- Original Message ----- > Da : "Magnus Haraldsen Amundsen" > > A : > Oggetto : Apache commons-fileupload returns an empty list > Data : Tue, 15 Jul 2008 13:08:17 +0200 > > > Hi, > > > > > > > > I want to use commons-fileupload to handle fileupload in > > my webapp. I've followed the tutorial at > > http://commons.apache.org/fileupload/using.html > > but > > line > > > > > > > > List /* FileItem */ items > > upload.parseRequest(request.getCocoonRequest()); > > > > > > > > always gives me an empty list. items.size() == 0. > > > > > > > > I suspect that this is because the HttpServletRequest is > > already parsed somewhere within Cocoon. Is there a > > workaround for this problem? > > > > > > > > -Magnus > > > > > > > > > > > > > > IMPORTANT NOTICE: > > This message may contain confidential information. > > If you have received this e-mail in error, do not use, > > copy or distribute it. Do not open any attachments. > > Delete it immediately from your system and notify the > > sender promptly by e-mail that you have done so. Thank > > you. > > > > > > ---------------------------------------------------------- > ----------- To unsubscribe, e-mail: > users-unsubscribe@cocoon.apache.org For additional > commands, e-mail: users-help@cocoon.apache.org > > IMPORTANT NOTICE: > This message may contain confidential information. > If you have received this e-mail in error, do not use, > copy or distribute it. Do not open any attachments. > Delete it immediately from your system and notify the > sender promptly by e-mail that you have done so. Thank > you. > > > ---------------------------------------------------------- > ----------- To unsubscribe, e-mail: > users-unsubscribe@cocoon.apache.org For additional > commands, e-mail: users-help@cocoon.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org