Skip to content

Reject empty uploads#441

Merged
quis merged 1 commit into
mainfrom
reject-empty-uploads
Jun 16, 2026
Merged

Reject empty uploads#441
quis merged 1 commit into
mainfrom
reject-empty-uploads

Conversation

@quis

@quis quis commented Jun 16, 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.

Our logs show that this happens fairly infrqeuently, so we don’t think we need to tell users we are doing this in advance.

This is the API counterpart of alphagov/notifications-admin#5963

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.

Our logs show that this happens fairly infrqeuently, so we don’t think
we need to tell users we are doing this in advance.
@quis quis merged commit a45e996 into main Jun 16, 2026
7 checks passed
@quis quis deleted the reject-empty-uploads branch June 16, 2026 13:41
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