I have defined a form as multipart/form-data enctype. When I press a command button the request is not send with 'multipart/form-data' content-type.
<h:form id="form" method="post" enctype="multipart/form-data">
<input type="file" ></input>
<p:commandButton id="save" icon="saveBt" value="#{msgs.saveBt}" ... />
</h:form>
In the developer tools console I can see the Content-Type as application/x-www-form-urlencoded; charset=UTF-8.
I'm working with JSF 2.1 and Primefaces 5.1.
Thanks
<p:fileUpload>because it doesn't work with ajax and mode attribute set to "simple"". This is in fact required -mode="simple"always requiresajax="false"(It is a specified behaviour). - Tiny<h:inputFile>). You could upgrade to JSF 2.2, if that version of JBoss (7.1) supports Servlet 3.0. - Tiny