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
commit b78f89c3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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