Ensure that log files are not too big, else the rageshake server will reject the request.

See https://github.com/element-hq/element-android/issues/9096#issuecomment-3480128082

Closes #5983
This commit is contained in:
Benoit Marty 2026-01-12 09:18:26 +01:00
parent 983c012b79
commit 7dcd88f8e1
2 changed files with 12 additions and 1 deletions

View file

@ -25,4 +25,9 @@ object RageshakeConfig {
* The maximum size of the upload request. Default value is just below CloudFlare's max request size.
*/
const val MAX_LOG_UPLOAD_SIZE = 50 * 1024 * 1024L
/**
* The maximum size of a single log file.
*/
const val MAX_LOG_CONTENT_SIZE = 100 * 1024 * 1024L
}