Don't compress attachments in export

Since they are typically images and videos, which are already
compressed.
This commit is contained in:
Kevin McConnell
2025-12-02 10:39:56 +00:00
parent d24726c1d3
commit f7e2b4e0ba
+1 -1
View File
@@ -63,7 +63,7 @@ class Account::Export < ApplicationRecord
end
card.export_attachments.each do |attachment|
zip.get_output_stream(attachment[:path]) do |f|
zip.get_output_stream(attachment[:path], compression_method: Zip::Entry::STORED) do |f|
attachment[:blob].download { |chunk| f.write(chunk) }
end
rescue ActiveStorage::FileNotFoundError