You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Matthew Broadhead <ma...@nbmlaw.co.uk> on 2017/01/16 10:31:47 UTC
h inputFile file size
Hi,
I am successfully using h inputFile to upload a file to a named bean.
However the file size seems to be limited to 1MB. i have searched the
internet and it led me to changing the settings in the web.xml like so
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<multipart-config>
<max-file-size>20848820</max-file-size>
<max-request-size>418018841</max-request-size>
<file-size-threshold>1048576</file-size-threshold>
</multipart-config>
</servlet>
however this seems to have no effect. Is this the correct method and if
so what might i be doing wrong?