Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 50339 invoked from network); 7 Oct 2004 17:59:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Oct 2004 17:59:23 -0000 Received: (qmail 62354 invoked by uid 500); 7 Oct 2004 17:59:17 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 61881 invoked by uid 500); 7 Oct 2004 17:59:14 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 61866 invoked by uid 99); 7 Oct 2004 17:59:13 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [69.64.167.22] (HELO cipher.moesol.com) (69.64.167.22) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 07 Oct 2004 10:59:13 -0700 Received: (qmail 23138 invoked from network); 7 Oct 2004 18:07:03 -0000 Received: from adsl-69-224-189-22.dsl.sndg02.pacbell.net (HELO katabatic) (69.224.189.22) by 0 with SMTP; 7 Oct 2004 18:07:03 -0000 Message-ID: <003901c4ac97$58f336f0$6600a8c0@katabatic> From: "Adam Pelletier" To: Subject: FileUpload Parameter Handling Date: Thu, 7 Oct 2004 10:59:10 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0036_01C4AC5C.AC7C9130" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0036_01C4AC5C.AC7C9130 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm using commons-fileupload-1.0.jar. I'm trying to upload a file using enctype=3D"multipart/form-data". However, I'm also passing a hidden form input element with an ID stuck = in it. This ID is critical for the state of the servlet. Oddly, when I = use the enctype=3D"multipart/form-data", my HttpServletRequest no longer = seems to contain the parameters usually accessible by = req.getParameter("ID");. In the debugger I see that the parameter = hashtable is empty. As a test I remove enctype=3D"multipart/form-data" = from the form. The parameters then show up properly in the parameter = map, but now the file is not accessible. =20 Is there a way to utilize both the file uploading capability and still = have access to the parameter list as it comes in as a = HttpServletRequest? Thanks in advance. Adam ------=_NextPart_000_0036_01C4AC5C.AC7C9130--