Multipart/Form-Data Problem
Hi all, I have encountered a strange problem with tomcat 3.2.2 (standalone). I have prepared pages to upload files using post method but i ended up getting "Can not find server" and "Connection reset by peer" responses from IE and Netscape. When i post the data from the first page, the browsers display error messages. The thing is that error does not occur on every file and it occurs on both binary and text files. During the localization of the problem i removed the jsp statements from the program and changed the code. What i ended up with is the following two files whose content are nothing but the HTML tags; but the error is still there. Here are the files: --file upload.jsp HTML HEAD /HEAD BODY form name="upload" method="post" action="/java/1.jsp" enctype="multipart/form-data" BRBR Select a file: INPUT TYPE="FILE" NAME="file1" INPUT TYPE="SUBMIT" Name="Submit" Value="Submit" /BODY /HTML -file--1.jsp HTML HEAD /HEAD BODY FORM name="upload" method="post" action="/java/upload.jsp" INPUT TYPE="HIDDEN" Name="strdirname" value="\" INPUT TYPE="HIDDEN" Name="strsorttype" value="name" /FORM /BODY /HTML Can someone help me with this problem ? -Oner Necip Hamali
Re: Multipart/Form-Data Problem
So these two pages refer to each other? What's supposed to handle the multipart/form-data? You know that Tomcat won't automatically handle it don't you? [EMAIL PROTECTED] wrote: Hi all, I have encountered a strange problem with tomcat 3.2.2 (standalone). I have prepared pages to upload files using post method but i ended up getting Can not find server and Connection reset by peer responses from IE and Netscape. When i post the data from the first page, the browsers display error messages. The thing is that error does not occur on every file and it occurs on both binary and text files. During the localization of the problem i removed the jsp statements from the program and changed the code. What i ended up with is the following two files whose content are nothing but the HTML tags; but the error is still there. Here are the files: --file upload.jsp HTML HEAD /HEAD BODY form name=upload method=post action=/java/1.jsp enctype=multipart/form-data BRBR Select a file: INPUT TYPE=FILE NAME=file1 INPUT TYPE=SUBMIT Name=Submit Value=Submit /BODY /HTML -file--1.jsp HTML HEAD /HEAD BODY FORM name=upload method=post action=/java/upload.jsp INPUT TYPE=HIDDEN Name=strdirname value=\ INPUT TYPE=HIDDEN Name=strsorttype value=name /FORM /BODY /HTML Can someone help me with this problem ? -Oner Necip Hamali -- Andy Armstrong, Tagish
RE: Multipart/Form-Data Problem
Hi, I tried ajp13 connector before but it did not work either. I experimented with http connector of Tomcat for the first time, unfortunately the error remains. PS: The files are the smallest set of code that causes the problem. Processing instructions are removed on purpose. Kimden: "Keith Wannamaker" [EMAIL PROTECTED] Tarih: 2001/07/02 Mon PM 01:37:35 GMT+03:00 Kime: [EMAIL PROTECTED] Konu: RE: Multipart/Form-Data Problem Try reproducing the problem with ajp13 or the Tomcat http connector. Keith | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] | Sent: Monday, July 02, 2001 2:21 PM | To: [EMAIL PROTECTED] | Subject: Multipart/Form-Data Problem | | | Hi all, | | I have encountered a strange problem with tomcat 3.2.2 | (standalone). I have | prepared pages to upload files using post method but i ended up | getting "Can not | find server" and "Connection reset by peer" responses from IE and | Netscape.