Closed Bug 218620 Opened 22 years ago Closed 20 years ago

multipart/data form submition does not work

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED EXPIRED

People

(Reporter: pdesoyres, Unassigned)

References

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.4) Gecko/20030624 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.4) Gecko/20030624 i developped an html page with an upload form : <form name="analyseForm" action="analyseSubmit.m" method="post" enctype="multipart/form-data"> <input type="file" name="file"/> <input type="submit" value="upload"/> </form> i use Tomcat 4.18 and java servlet to upload the file. But will it works fine with other browsers (IE6, Opera7), i get a null ContentType and a -1 ContentLength with Mozilla. Reproducible: Always Steps to Reproduce: 1. make an html page with multipart/data form. 2. make a java servlet that get the request's ContentType and ContentLength and display it somwhere. 3. submit form with a file selected. Actual Results: contentType : null content length : -1 Expected Results: contentType : multipart/form-data; boundary=----------XjK9j69HyCI1Owh2ui8rRx content length : 30406
Could you please post a testcase somewhere? We do send those two headers in our multipart form submissions.... Also, is this a problem with a 1.5b build?
I tested this with Mozilla 4.1 and 5.2b that give me the same bug. Everything goes fine with Netscape, IE and Opera. I use Tomcat 4.1.18 to deploy my servlet. No need to send a testcase because it is so simple. Here is the the doPost() method of my servlet that is executed on form submission : doPost(req HttpServletRequest, res HttpServletResponse) { System.out.print("contentType : "); System.out.println("" + req.getContentType); System.out.print("content length : "); System.out.println("" + req.getContentLength); }
If you post a testcase, I can compare what Mozilla sends on the wire to what your servlet reports. That way it will be clear whether there is a Mozilla bug (not sending the data) or a servlet bug (not parsing the data correctly).
Dupe of bug 7973?
Depends on: 7973
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → EXPIRED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.