diff --git a/services/web/app/src/Features/Uploads/ArchiveManager.mjs b/services/web/app/src/Features/Uploads/ArchiveManager.mjs index 644c65ced6..827ebc4084 100644 --- a/services/web/app/src/Features/Uploads/ArchiveManager.mjs +++ b/services/web/app/src/Features/Uploads/ArchiveManager.mjs @@ -15,7 +15,7 @@ import { } from './ArchiveErrors.mjs' import FileTypeManager from './FileTypeManager.mjs' -const MAX_UNCOMPRESSED_BYTES = 1024 * 1024 * 300 // 300MB +const MAX_UNCOMPRESSED_BYTES = 6 * Settings.maxUploadSize // 300MB (by default) /** * Check if a zip entry's file path is safe and return the destination path.