Merge pull request #4820 from betagouv/4700-virus-scan-safe
#4700: Les exports sont immédiatement marqués comme sûrs par l'antivirus
This commit is contained in:
commit
c5814a3f7a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue