server-client-python icon indicating copy to clipboard operation
server-client-python copied to clipboard

[TYPE 3] [Allow to override constants]

Open ludwigrubio opened this issue 2 years ago • 2 comments

Summary

Create a configuration file to centralize all constant in a single place, allowing users to override values as needed (Monkey patching)

Description

There is a constant FILESIZE_LIMIT in the datasources_endpoint.py file that is hardcoded to chunk files after 64 MB.

Security policies implemented in a firewall on top of an application could have constrains about the max size of body request or max file upload that could differ in case to case and requires file to be chunked in smaller pieces.

ludwigrubio avatar Feb 02 '23 16:02 ludwigrubio

Sounds very reasonable, shouldn't be too hard.

jacalata avatar Mar 27 '23 18:03 jacalata

Thumbs up, it would be nice to have a possibility to override CHUNK_SIZE_MB as well.

Salatich avatar Jul 08 '24 21:07 Salatich