Fix: zip archive max uncompressed size

This commit is contained in:
Rudy Ercek
2026-08-04 10:07:10 +02:00
committed by yu-i-i
parent cf70bc751e
commit 00597dcd4a
@@ -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.