SetAttachments wires the attachment storage Registry that the upload and download handlers use. Pass maxBytes = 0 to keep the defaultAttachmentMaxBytes ceiling (25 MiB).
(reg *attachments.Registry, maxBytes int64)
| 748 | // and download handlers use. Pass maxBytes = 0 to keep the |
| 749 | // defaultAttachmentMaxBytes ceiling (25 MiB). |
| 750 | func (s *Server) SetAttachments(reg *attachments.Registry, maxBytes int64) { |
| 751 | s.attachments = reg |
| 752 | s.attachmentMaxBytes = maxBytes |
| 753 | } |
| 754 | |
| 755 | // SetImageProcessor wires the image processor that the upload handler |
| 756 | // uses to derive thumbnail variants (TASK-878). Optional — without it |
no outgoing calls