Merge pull request #984 from noobpk/noobpk-patch-validators

Add `att.full_clean()` before saving to address file validators not working on email attachments
This commit is contained in:
Garret Wassermann
2021-11-18 02:55:39 -05:00
committed by GitHub

View File

@ -145,6 +145,7 @@ def process_attachments(followup, attached_files):
'application/octet-stream',
size=attached.size,
)
att.full_clean()
att.save()
if attached.size < max_email_attachment_size: