Hello,
when trying to upload a file having size bigger than 50MB approximately the browser displays the following error message: "Timeout sending the file: perhaps your browser does not send files correctly, your session has expired, or there was a server error. Please try again."
Is there a way to remove this limitation?
Thanks a lot!
Timeout sending the file
Moderator: car031
Post
Re: Timeout sending the file
It seems your connection is really slow sint it is unusual to get timeout for just 50MB.
However you can change the upload timeout by locating this section in your WEB-INF/web.xml file:
<context-param>
<!-- Timeout used when uploading files (milliseconds) -->
<param-name>noDataTimeout</param-name>
<param-value>60000</param-value>
</context-param>
However you can change the upload timeout by locating this section in your WEB-INF/web.xml file:
<context-param>
<!-- Timeout used when uploading files (milliseconds) -->
<param-name>noDataTimeout</param-name>
<param-value>60000</param-value>
</context-param>
Post
Re: Timeout sending the file
Hi,
thank you very much for the reply!
I've tried to change the configuration to:
<context-param>
<!-- Timeout used when uploading files (milliseconds) -->
<param-name>noDataTimeout</param-name>
<param-value>180000</param-value>
</context-param>
but unfortunately it seems that I still get the same error after 60 seconds instead of 180; I've tried to undeply and deploy the WAR archive again (I'm using Glassfish v.3.1.2.2) and I've also tried to update the gwtupload library (from v. 0.6.6 to 1.0.1) but I still get the same error...am I missing something?
Thanks again!
thank you very much for the reply!
I've tried to change the configuration to:
<context-param>
<!-- Timeout used when uploading files (milliseconds) -->
<param-name>noDataTimeout</param-name>
<param-value>180000</param-value>
</context-param>
but unfortunately it seems that I still get the same error after 60 seconds instead of 180; I've tried to undeply and deploy the WAR archive again (I'm using Glassfish v.3.1.2.2) and I've also tried to update the gwtupload library (from v. 0.6.6 to 1.0.1) but I still get the same error...am I missing something?
Thanks again!
Post
Re: Timeout sending the file
Perhaps Glassfigh is ignoting that context parameter, i suggest you to use Tomcat
Post
Re: Timeout sending the file
Hi,
thank you for the suggestion but unfortunately I can only use Glassfish in my environment.
I even tried to set that specific param with the Glassfish set-web-context-param command but I still get the same error after 60s. At this point I was wondering if there is a way to hardcode this parameter in some Java class or other resource, I mean instead of getting it from the web.xml file? Thanks...!
thank you for the suggestion but unfortunately I can only use Glassfish in my environment.
I even tried to set that specific param with the Glassfish set-web-context-param command but I still get the same error after 60s. At this point I was wondering if there is a way to hardcode this parameter in some Java class or other resource, I mean instead of getting it from the web.xml file? Thanks...!
Post
Re: Timeout sending the file
Have you tried to change the session timeout?
At the same web.xml file there is another parameter named called session-timeout
Another thing that might affect is the maximum size of the file.
If I remember well, in LogicalDOC the default maximum file size is fixed at 10 MB
Change this value in context.properties (when Tomcat is stopped)
or directly from the GUI using the path below:
Administration -> Settings -> GUI Settings -> Upload max. size
Alex
At the same web.xml file there is another parameter named called session-timeout
Code: Select all
<session-config>
<session-timeout>30</session-timeout>
</session-config>
If I remember well, in LogicalDOC the default maximum file size is fixed at 10 MB
Change this value in context.properties (when Tomcat is stopped)
Code: Select all
upload.maxsize=2000
Administration -> Settings -> GUI Settings -> Upload max. size
Alex
Post
Re: Timeout sending the file
Hi,
thanks for the reply! I did already change the upload.maxsize since I was getting another error about the max upload size and that change worked! I was then able to upload files having size >10MB.
Unfortunately now if I try to upload files having size > 50MB I still get the timeout error; I changed the configuration you suggested to:
<session-config>
<session-timeout>180</session-timeout>
</session-config>
I then reloaded the web application and restarted glassfish but I still get the same timeout error after 60s...!
So I was wondering if is there another way to change this parameter? Thanks!
thanks for the reply! I did already change the upload.maxsize since I was getting another error about the max upload size and that change worked! I was then able to upload files having size >10MB.
Unfortunately now if I try to upload files having size > 50MB I still get the timeout error; I changed the configuration you suggested to:
<session-config>
<session-timeout>180</session-timeout>
</session-config>
I then reloaded the web application and restarted glassfish but I still get the same timeout error after 60s...!
So I was wondering if is there another way to change this parameter? Thanks!
Post
Re: Timeout sending the file
Which version of Glassfish are you using?
On what operating system?
What is your version of Java?
On what operating system?
What is your version of Java?
Who is online
Users browsing this forum: No registered users and 34 guests