myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Broadhead <matthew.broadh...@nbmlaw.co.uk>
Subject h inputFile file size
Date Mon, 16 Jan 2017 10:31:47 GMT
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?


Mime
View raw message