#4700: export files are antivirus-safe

This commit is contained in:
clemkeirua 2020-02-24 10:33:31 +01:00 committed by GitHub Action
parent 4dd5960108
commit ae14599245

View file

@ -25,7 +25,9 @@ class Export < ApplicationRecord
file.attach(
io: io,
filename: filename,
content_type: content_type
content_type: content_type,
# We generate the exports ourselves, so they are safe
metadata: { virus_scan_result: ActiveStorage::VirusScanner::SAFE }
)
end