Skip to content

Commit

Permalink
Merge pull request #984 from noobpk/noobpk-patch-validators
Browse files Browse the repository at this point in the history
Add `att.full_clean()` before saving to address file validators not working on email attachments
  • Loading branch information
gwasser committed Nov 18, 2021
2 parents 73787bd + 04483bd commit b78f89c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpdesk/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b78f89c

Please sign in to comment.