diff --git a/routers/repo/attachment.go b/routers/repo/attachment.go index c2efb11c1..302f5b33f 100644 --- a/routers/repo/attachment.go +++ b/routers/repo/attachment.go @@ -55,6 +55,7 @@ func UploadAttachment(ctx *context.Context) { } if !allowed { + log.Info("Attachment with type %s blocked from upload", fileType) ctx.Error(400, ErrFileTypeForbidden.Error()) return }