[ https://issues.apache.org/jira/browse/MYFACES-3716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13665146#comment-13665146 ]
Dora Rajappan commented on MYFACES-3716: ---------------------------------------- <Context ... allowCasualMultipartParsing="true"> tomcat7 users need to set this for file upload. Chrome is submitting file. According to spec decode behaviour is Call getParts() on the httpServletRequest. Iterate over the parts. If the "name" property of the current part is equal to the "clientId", pass the current part to the setSubmittedValue() method of the component. If an exception is thrown during the iteration, log the exception and continue. So the bean should have a type ApplicationPart and not File type for the property. Encode behaviour is pending. If ProjectStage is not ProjectStage.Production, verify that the enclosing form has an enctype attribute whose value is multipart/form-data. If not, add a FacesMessage for this component's clientId to the FacesContext stating that file upload requires a form with enctype equal to multipart/form-data. If ProjectStage is ProjectStage.Production, do not do this verification. In order not to break the spec standard-faces-config add renderer entry for javax.faces.File <renderer> <component-family>javax.faces.Input</component-family> <renderer-type>javax.faces.File</renderer-type> <renderer-class>org.apache.myfaces.renderkit.html.HtmlInputFileRenderer</renderer-class> </renderer> > Implement h:inputFile > --------------------- > > Key: MYFACES-3716 > URL: https://issues.apache.org/jira/browse/MYFACES-3716 > Project: MyFaces Core > Issue Type: Task > Components: JSR-344 > Reporter: Leonardo Uribe > > Implement h:inputFile as described in the spec -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira