Fix export of large user archives on 4.4 by enabling Zip64 (#35850)

This commit is contained in:
Claire 2025-08-23 01:59:11 +02:00 committed by GitHub
commit 4ef0ce033e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,6 +55,7 @@ class BackupService < BaseService
def build_archive!
tmp_file = Tempfile.new(%w(archive .zip))
Zip.write_zip64_support = true
Zip::File.open(tmp_file, create: true) do |zipfile|
dump_outbox!(zipfile)
dump_media_attachments!(zipfile)