Hello Everyone,
I am using ajax-submit on an enctype 'multipart/form-data' form.
By checking the mutiplipart Content of my request in my servlet (ServletFileUpload.isMultipartContent(request)) it always returns false.
Does it means AJAX does not allow enctype form ? is there any solutions to this problem ?
Thanks in advance
Vincent
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Everyone,
I am using ajax-submit on an enctype 'multipart/form-data' form.
By checking the mutiplipart Content of my request in my servlet (ServletFileUpload.isMultipartContent(request)) it always returns false.
Does it means AJAX does not allow enctype form ? is there any solutions to this problem ?
Thanks in advance
Vincent
Hi!
ajax:submit is not depending on form parameters such as method or enctype.
It serializes (see Prototype API documentation http://api.prototypejs.org/dom/form/serialize/) all successful form controls (see http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2) and sends with Ajax.Updater (http://api.prototypejs.org/ajax/ajax/updater/) using HTTP POST by default.
P.S. Why do you need enctype?