|
RE: Help! multipart/form-data use GET, not POST: msg#00034text.xml.resin.user
When you upload a file, there is special boundaires included in the content type. ie Content-Type: multipart/form-data; boundary=---------------------------29772313742745 Content-Length: 452 -----------------------------29772313742745 Content-Disposition: form-data; name="name" J.Doe -----------------------------29772313742745 Content-Disposition: form-data; name="email" abuse@xxxxxxxxxxx -----------------------------29772313742745 Content-Disposition: form-data; name="file-upload"; filename="test.txt" Content-Type: text/plain test data with some high ascii: ¿Como estás? -----------------------------29772313742745-- Therefore, You don't have access to the parameters with the request.getParameter function. You need to use POST in this case, it is a prerequisite. It is not in any means a malfunction, it is according to the protocol. Hope it helps and hope I got the question right :) -----Original Message----- From: owner-resin-interest@xxxxxxxxxx [mailto:owner-resin-interest@xxxxxxxxxx]On Behalf Of Bond - James D. Sent: Thursday, March 04, 2004 10:31 AM To: resin-interest Subject: Re: Help! multipart/form-data use GET, not POST Hmm, I use POST and it works fine for me? Gice your form a 'name' and see if that makes a difference? I'm using Resin 2.1.11 on JDK 1.4.2 > In a routine common HTML form: > > <FORM ACTION="/servlet/BlahBlah" ENCTYPE="multipart/form-data"> > > input data are sent via GET, not POST. That is very incovenient because > of URL encoding. However, if we explicitly specify the POST method, > > <FORM ACTION="/servlet/BlahBlah" METHOD="POST" ENCTYPE="multipart/form-data"> > > data are not sent from the client and every response.getParameter() is null. > > I'd like to hear what do you guess/suspect could be the cause of this > malfunctioning? > > I'm using Resin 2.1.12. > > Thanks in advane, > > --------------------- > Hiroshi Iwatani > > *stop cruelty* Annual number of institutionally euthanized cats and dogs > including kittens and puppies: US 5 million, JP 500 thousand. How about your > country? *for our better karma* > --------------------- > -- James Dalrymple Telesoft Corp. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: mod_caucho servlet dispatch: 00034, Josh Kropf |
|---|---|
| Next by Date: | Closing dangling connections, on Servlet application: 00034, Tom K |
| Previous by Thread: | Re: Help! multipart/form-data use GET, not POSTi: 00034, Serge Knystautas |
| Next by Thread: | AW: Help! multipart/form-data use GET, not POST: 00034, Gast, Thorsten IZ/HZA-IOL |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |