You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthew Broadhead (JIRA)" <de...@myfaces.apache.org> on 2017/02/05 15:33:42 UTC

[jira] [Commented] (MYFACES-4081) h inputFile size limit

    [ https://issues.apache.org/jira/browse/MYFACES-4081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15853252#comment-15853252 ] 

Matthew Broadhead commented on MYFACES-4081:
--------------------------------------------

if anyone else has the problem it was a configuration issue in server.xml in the connector maxPostSize
{code:xml}<Connector connectionTimeout="20000" maxPostSize="-1" port="8080" protocol="HTTP/1.1" redirectPort="8443" server="Apache TomEE" xpoweredBy="false"/>{code}
sets it to unlimited but you might want a more sensible value.  what is annoying was that there was no error or feedback reported it just drops the connextion.

> h inputFile size limit
> ----------------------
>
>                 Key: MYFACES-4081
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4081
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.3
>         Environment: TomEE 7.0.2
>            Reporter: Matthew Broadhead
>
> h inputFile seems to be limited to a file size of around 1MB.  no error is thrown if file exceeds this size.  javascript console shows net::ERR_CONNECTION_RESET
> i have tried changing these settings 
> {code:xml}
> <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>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)