Files
kandev/apps/backend/internal/task/models/attachments.go
T
2026-08-06 13:45:55 +01:00

23 lines
738 B
Go

package models
import (
"errors"
"github.com/kandev/kandev/internal/messageconstraints"
)
const (
MaxMessageAttachmentBytes = messageconstraints.MaxAttachmentBytes
MaxMessageAttachmentCount = messageconstraints.MaxAttachmentCount
)
var (
ErrAttachmentTooLarge = errors.New("attachment exceeds maximum size")
ErrAttachmentTotalTooLarge = errors.New("total attachment size exceeds maximum")
ErrTooManyAttachments = errors.New("too many attachments")
ErrAttachmentClaimConflict = errors.New("attachment claim conflict")
ErrAttachmentNotFound = errors.New("attachment not found")
ErrAttachmentForbidden = errors.New("attachment access denied")
ErrAttachmentInvalid = errors.New("invalid attachment")
)