Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 22FD3200C28 for ; Mon, 13 Mar 2017 16:02:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 21888160B6C; Mon, 13 Mar 2017 15:02:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6A84D160B60 for ; Mon, 13 Mar 2017 16:02:55 +0100 (CET) Received: (qmail 26493 invoked by uid 500); 13 Mar 2017 15:02:54 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 26480 invoked by uid 99); 13 Mar 2017 15:02:54 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Mar 2017 15:02:54 +0000 Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 0E3001A0193 for ; Mon, 13 Mar 2017 15:02:54 +0000 (UTC) Received: by mail-vk0-f54.google.com with SMTP id d188so36435201vka.0 for ; Mon, 13 Mar 2017 08:02:54 -0700 (PDT) X-Gm-Message-State: AMke39lRa+55iroEqe962Zl13qpbewE8xYpT7arzD5c71v+ST+q0cwCYCxn2Q5abTDN3dmEmWP1E21kJzQVSJQ== X-Received: by 10.31.196.194 with SMTP id u185mr14843566vkf.71.1489417373154; Mon, 13 Mar 2017 08:02:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.69.144 with HTTP; Mon, 13 Mar 2017 08:02:52 -0700 (PDT) In-Reply-To: References: From: Johannes Geppert Date: Mon, 13 Mar 2017 16:02:52 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Request exceeded allowed size limit! Max size allowed is: 2,097,152 To: Struts Users Mailing List , emilu@encs.concordia.ca Content-Type: multipart/alternative; boundary=001a114e665e734d18054a9e0162 archived-at: Mon, 13 Mar 2017 15:02:56 -0000 --001a114e665e734d18054a9e0162 Content-Type: text/plain; charset=UTF-8 I'm not sure, but I think the tomcat configuration is case sensitive. Can you please try "maxPostSize" instead of "maxpostsize" in your connector config? Best Regards Johannes ################################################# web: http://www.jgeppert.com twitter: http://twitter.com/jogep 2017-03-13 15:57 GMT+01:00 Emi : > Hello, > > Tried to upload file, and always got the following errors: > > Request exceeded allowed size limit! Max size allowed is: 2,097,152 but > request was: 2,463,633! > > > > May I know where I missed the steps please? > > struts.xml > > > strict-method-invocation="false"> > .... > > class="ProcessActionUploadPdf"> > > > 90000000 > > > > application/pdf > fileInputStream > atta > chment;filename="${filename}" > 1024 > > ..... > > tomcat7 server.xml: > redirectPort="8443" > maxpostsize="90000000"> > > Thanks a lot! > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --001a114e665e734d18054a9e0162--