Total Size Of Requested Files Is Too Large For Ziponthefly ((new)) File

The error message "total size of requested files is too large for zip-on-the-fly"

Zipping large files takes time. If the server takes longer than max_execution_time (often 30-60 seconds) to process the request, the script dies, sometimes displaying this generic error. total size of requested files is too large for ziponthefly

paths = ['fs': '/path/to/large/file1.bin', 'fs': '/path/to/large/file2.bin'] zfly = zipfly.ZipFly(paths=paths) generator = zfly.generator() The error message "total size of requested files

builder.WebHost.ConfigureKestrel(options => options.Limits.MaxRequestBodySize = 2147483648; // 2 GB ); the script dies

For custom web applications, generating ZIP files "on-the-fly" for multi-gigabyte requests is an architectural anti-pattern. Instead: