SetImageProcessor wires the image processor that the upload handler uses to derive thumbnail variants (TASK-878). Optional — without it uploads still succeed but no thumbnails are generated; the download handler's variant fallback path returns the original blob. The capabilities endpoint reflects wh
(p attachments.Processor)
| 821 | // download handler's variant fallback path returns the original blob. |
| 822 | // The capabilities endpoint reflects whichever processor is wired. |
| 823 | func (s *Server) SetImageProcessor(p attachments.Processor) { |
| 824 | s.imageProcessor = p |
| 825 | } |
| 826 | |
| 827 | // markUploadInFlight increments the in-flight counter for a content |
| 828 | // hash. Returns a release func the caller MUST defer; the release |
no outgoing calls