Skip to content

Stop users uploading attaching empty files to templates#5963

Merged
quis merged 1 commit into
mainfrom
validate-empty-template-email-files
Jun 15, 2026
Merged

Stop users uploading attaching empty files to templates#5963
quis merged 1 commit into
mainfrom
validate-empty-template-email-files

Conversation

@quis

@quis quis commented Jun 15, 2026

Copy link
Copy Markdown
Member

Why do this now? Because we cannot detect the mimetype of an empty file.

However there’s probably no need for people to be sending empty files – in fact it’s most likely testing or a mistake. And since in the UI we can warn people at the time of uploading, not sending, it seems like it doesn’t hurt to add some validation.

Motivation for doing this now is it stops us detecting the mimetype of
the file.

However there’s probably no need for people to be sending empty files –
in fact it’s most likey testing or a mistake. And since in the UI we can
warn people at the time of uploading, not sending, it seems like it
doesn’t hurt to add some validation.
@quis quis force-pushed the validate-empty-template-email-files branch from 6009e36 to 77b2844 Compare June 15, 2026 14:49
@quis quis merged commit 9f90c3a into main Jun 15, 2026
8 checks passed
@quis quis deleted the validate-empty-template-email-files branch June 15, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants