Hi, I am uploading a file in SampleBinary Entity. While upload large files I am facing connection Time Out Error. I have increased the Timeout for this entity as 200 and its server action timeout as 200. How can I handle this error ? Also, the File Uploading animation is active when it gets TimedOut , How can I make the loading has false when it gets timedout.
Note: I don't want to restrict the File Size while Uploading. Also, I don't want to use any Forge component to handle this error.
Hi Annie,
You might get this error When you upload a file with large data. To resolve this error you need to keep 2 things in mind :
1. Separate the upload and processing logic
2. Use timers
I am attaching a sample OAP here. I am using Batch processing here. Please let me know if you have any further questions.
Thanks,
Neha
Hi @Neha Sheikh ,
@Annie Bibiana Yesudass is facing issue in saving a binary data to entity while uploading.
Regards,
Wasimkhan S
Hi @Annie Bibiana Yesudass
Try to go through this discussion.
https://www.outsystems.com/forums/discussion/93298/connection-timeout-issue-with-large-file-uploads-in-outsystems-application/#:~:text=bin%20files%20larger%20than%2030MB,the%20request%20timeout%20to%20%2D1.
Hope this will help
Prince
Hello, Annie Bibian Yesudass, For the most part, you can achieve this by increasing the server timeout property.
But its not as per best practice. So better run the action using timer (timeout time: 20 min), which take more time to execute.Thanks and Regards,Akshay Deshpande
Did you try by increasing the server request timeout in server action from 200 to any other value like 2000 or more?
Try increasing the timeout and check if it works?
Hi Wasim, no need to share the same information that was already shared 2 hours before your reply by Askshay Deshapande.
Hi Daniel,
Akshay Deshapande asked to increase the Module's server request timeout. I have asked to try by increase the server actions timeout from 200 to 2000s.
HI,
Some alternatives to attack:
1. Compress the file
2. ask the user to upload a smaller size
3. save the file in a file systems and its URL in database (use other tools to upload to the file system: ftp, etc).
regards