223
Views
4
Comments
Solved
How to Upload Files Larger Than 30MB in ODC Project?
Question

I have two questions about uploading file in Outsystems ODC.

1. Currently, my ODC project requires uploading files larger than 30MB. However, I understand that the ODC version has a limit of 28.6MB for file uploads. Is there any workaround to overcome this issue?
https://success.outsystems.com/documentation/outsystems_developer_cloud/getting_started/outsystems_system_requirements_for_odc/#platform-limits

2. When I tried to upload a 25Mb file, it still doesn't work. What is the limit here?
In my example, I had only an input file type and a button to create a file entity.


Thank you for your help. 

2021-10-09 07-57-44
Stefan Weber
 
MVP
Solution

The 28MB request limit is a hard limit. There is no way to increase it. When you try to upload a file the binary data is converted into a base64 string which increases the size of the file. That is why you cant upload a 25 MB file. The factor is around 1.3 for size increase.

If you are interested in file handling overall including how to deal with very large files please see my article series on ODC with AWS S3. https://without.systems/series/odc-s3-file-handling-series

Stefan


2025-01-27 01-12-56
Manh Nguyen Danh

Thanks for your articles, its really helpful!

UserImage.jpg
Gadar S

This should have been part of documentation. We were also trying to validate the max file size that can be uploaded and still unable to go beyond 25MB.

UserImage.jpg
Bruno Machado
Staff

Uploading a File of total 30 mb in one time is actually a bad practice. In OutSystems the file content is stored in a variable, which results in a payload bigger than 30mb. The solution here passses by uploading the file in smaller chunks and merging it together in the server. 

I've developed a component to overcome this in O11, and it also works in ODC.

Storing a file in a database is not a good practice, but you can store it there temporarly for processing for example.

This component uses a worker just to free the main thread, but you can run this login on the main thread as well.

https://www.outsystems.com/forge/component-overview/22432/simpleuploadworker-o11

As an alternative, upload it directly to S3 or any other vendor.

Cheers!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.