Hi Isomorphic,
can you explain how exactly File Upload works? I do see a POST request in Chrome's F12 tools, but not the real data. With Firefox I I can see the data (when clicking resend request).
If I copy the data there to notepad++, I can see that the data size in my case is 5MB, which matches the file I wanted to upload (plus some multipart stuff).
Now this upload is allowed by my .ds.xml, which is set to allow 8MB files:
But in my Tomcat's server.xml. maxPostSize is set to 2 MB (the default):
But the upload works anyway. Is there some reason for it or am I doing something wrong with my Tomcat configuration? I don't think so, because the maxSavePostSize is working as expected.
By the way, this setting is very relevant w.r.t. relogin. The Tomcat default of 4 KB for maxSavePostSize is very little for complex requests or queues.
If a timeout happened and such a request follow, relogin will not work, as a Tomcat error page is returned ("The request body was too large to be cached during the authentication process"), which does not contain the relogin marker. Perhaps you can add to the Wiki or the Relogin docs that this setting might be too low by default (most likely re-configuring the error page to contain the relogin marker would work as well, I did not try that though).
Best regards
Blama
can you explain how exactly File Upload works? I do see a POST request in Chrome's F12 tools, but not the real data. With Firefox I I can see the data (when clicking resend request).
If I copy the data there to notepad++, I can see that the data size in my case is 5MB, which matches the file I wanted to upload (plus some multipart stuff).
Now this upload is allowed by my .ds.xml, which is set to allow 8MB files:
Code:
<field name="DATA" type="binary" required="true" maxFileSize="8388608"> <title><fmt:message key="file" /></title> </field>
Code:
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" maxSavePostSize="65536" maxPostSize="2097152" />
By the way, this setting is very relevant w.r.t. relogin. The Tomcat default of 4 KB for maxSavePostSize is very little for complex requests or queues.
If a timeout happened and such a request follow, relogin will not work, as a Tomcat error page is returned ("The request body was too large to be cached during the authentication process"), which does not contain the relogin marker. Perhaps you can add to the Wiki or the Relogin docs that this setting might be too low by default (most likely re-configuring the error page to contain the relogin marker would work as well, I did not try that though).
Best regards
Blama
Comment