Increase MAX_CONTENT_LENGTH

This commit is contained in:
lHolyDiverl
2026-01-06 16:05:23 -03:00
committed by GitHub
parent d5724c7517
commit 347f02c6c7
+1 -1
View File
@@ -148,7 +148,7 @@ if not os.path.exists(SECRET_KEY_FILE):
f.write(os.urandom(16))
with open(SECRET_KEY_FILE, 'rb') as f:
app.config['SECRET_KEY'] = f.read()
app.config['MAX_CONTENT_LENGTH'] = 4 * 1024 * 1024 # A typical .fit file with power, cadence, and heartrate data recorded in December 2024 is approximately 1.3 MB / 4 hours.
app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
db = SQLAlchemy()
db.init_app(app)