Instead of building the entire ZIP in memory, stream the output directly to the user.
If the service offers a desktop application (like OneDrive, Dropbox, or a private FTP client), use it. Sync clients download files natively without needing to wrap them in a ZIP archive first. Why Servers Impose These Limits total size of requested files is too large for ziponthefly
The server often has to build the ZIP in a temporary directory. If dozens of users try to create 10GB ZIPs simultaneously, the server's temporary storage could fill up. Technical Workarounds for Developers Instead of building the entire ZIP in memory,