662
Views
4
Comments
Problems uploading large files in reactive web apps
Question

the goal of uploading a file with 100mb.


we try to save the file in the database in an extension table but when we send the binary to the server we get the error 413 request entity too large, to try to solve this problem instead of saving the binary we would save the base 64 of the file, but when we do the binary to base64 conversion on the client side we get the out of memory error.


  note that we have already made this configuration

https://www.outsystems.com/forums/discussion/43533/how-to-upload-big-files-using-factory-configuration/


any ideas to overcome this problem.


Thank you very much

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi,

Not an answer to your question, but my advice would be not to store large files in the OutSystems database. It is just not that performance and gives you all these timeout issues easily depending on file size.

Consider if it is possible to use cloud storage, like AWS S3 Buckets, Azure Blob Storage, OneDrive storage, and then only save the URL to the storage location.

Regards,

Daniel

2020-06-02 14-20-36
João Vilelas

hello daniel

we save the file temporarily, we migrate the file to a cloud from a timer


thank you very much for the tips

2024-10-10 11-28-44
Gopal Jite

The problem you are experiencing is likely due to the fact that the maximum file size allowed by the server is less than 100mb and also the client machine does not have enough memory to handle the large binary file.

To solve this problem, there are a few options you can consider:

1. Increase the maximum file size allowed by the server: You can increase the maximum file size allowed by the server by modifying the server's configuration settings. This will allow larger files to be uploaded to the server.

2. Use a file hosting service: Instead of storing the file on the server, you can use a file hosting service such as Amazon S3 or Google Cloud Storage to store the files. This will allow you to store larger files without impacting the server's performance.

3. Chunk the file: Divide the large file into smaller chunks, and upload each chunk separately. You can then reassemble the chunks on the server to recreate the original file.

4. Compress the file: Compressing the file will reduce its size, which will make it easier to upload and process.

5. Optimize the conversion process: you can use a conversion algorithm that uses less memory, and also you could use a stream-based approach to handle the conversion process, this way the memory usage will be less.

2025-04-17 05-42-16
Ajit Kurane

Hi ,

In addition to above answers you can check below thread,

https://www.outsystems.com/forums/discussion/20948/problems-uploading-large-approx-200mb-osp/

Thanks.

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