POST /api/artwork/uploads (multipart/form-data) — upload channel logo or watermark artwork.
file: image (png/jpeg/gif/webp), max size SystemEnvironment.MaximumUploadMb (default 10 MB, ETV_MAXIMUM_UPLOAD_MB) — mirrors the Blazor upload path.
target: logo (default) or watermark.
Stores via IImageCache.SaveArtworkToCache (SHA1 content-addressed, same dedup as Blazor).
Returns 201 { path, contentType } — path is directly consumable as CreateChannel.Logo (iptv/logos/{file} for logos, bare cache filename for watermarks); Location header carries the servable URL incl. required ?contentType=.
All failures: 422 ProblemDetails, title Validation failed (contract-test entry added). No 404 surface.
Includes handler + controller tests (310 total pass), regenerated v1.json.
Adversarial review verdict
One MAJOR (missing #nullable enable on the response DTO → spec documented nullable strings) — fixed, spec now emits plain string. Minors noted, deliberately deferred: bare 413 above Kestrel 30 MB limit (consistent app-wide), Location for logos points at the conditionally-authorized IPTV route, content-type trusted from client (parity with legacy; magic-byte sniffing = #66). Parity with the Blazor path verified: same cache, same dedup, same path conventions; API is stricter-validated than Blazor.
## Endpoint
`POST /api/artwork/uploads` (multipart/form-data) — upload channel logo or watermark artwork.
- `file`: image (png/jpeg/gif/webp), max size `SystemEnvironment.MaximumUploadMb` (default 10 MB, `ETV_MAXIMUM_UPLOAD_MB`) — mirrors the Blazor upload path.
- `target`: `logo` (default) or `watermark`.
- Stores via `IImageCache.SaveArtworkToCache` (SHA1 content-addressed, same dedup as Blazor).
- Returns 201 `{ path, contentType }` — `path` is directly consumable as `CreateChannel.Logo` (`iptv/logos/{file}` for logos, bare cache filename for watermarks); Location header carries the servable URL incl. required `?contentType=`.
- All failures: 422 ProblemDetails, title `Validation failed` (contract-test entry added). No 404 surface.
Includes handler + controller tests (310 total pass), regenerated `v1.json`.
## Adversarial review verdict
One MAJOR (missing `#nullable enable` on the response DTO → spec documented nullable strings) — **fixed**, spec now emits plain `string`. Minors noted, deliberately deferred: bare 413 above Kestrel 30 MB limit (consistent app-wide), Location for logos points at the conditionally-authorized IPTV route, content-type trusted from client (parity with legacy; magic-byte sniffing = #66). Parity with the Blazor path verified: same cache, same dedup, same path conventions; API is stricter-validated than Blazor.
fixes #104
🤖 Generated with [Claude Code](https://claude.com/claude-code)
POST /api/artwork/uploads (multipart/form-data) accepting logo and
watermark images. Validates content type (png/jpeg/gif/webp) and size
(SystemEnvironment.MaximumUploadMb, default 10MB) mirroring the Blazor
upload path; stores via IImageCache.SaveArtworkToCache; returns
{ path, contentType } consumable by channel create/update.
Includes handler + controller tests, OpenAPI 422 contract-test entry,
and regenerated v1.json.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Endpoint
POST /api/artwork/uploads(multipart/form-data) — upload channel logo or watermark artwork.file: image (png/jpeg/gif/webp), max sizeSystemEnvironment.MaximumUploadMb(default 10 MB,ETV_MAXIMUM_UPLOAD_MB) — mirrors the Blazor upload path.target:logo(default) orwatermark.IImageCache.SaveArtworkToCache(SHA1 content-addressed, same dedup as Blazor).{ path, contentType }—pathis directly consumable asCreateChannel.Logo(iptv/logos/{file}for logos, bare cache filename for watermarks); Location header carries the servable URL incl. required?contentType=.Validation failed(contract-test entry added). No 404 surface.Includes handler + controller tests (310 total pass), regenerated
v1.json.Adversarial review verdict
One MAJOR (missing
#nullable enableon the response DTO → spec documented nullable strings) — fixed, spec now emits plainstring. Minors noted, deliberately deferred: bare 413 above Kestrel 30 MB limit (consistent app-wide), Location for logos points at the conditionally-authorized IPTV route, content-type trusted from client (parity with legacy; magic-byte sniffing = #66). Parity with the Blazor path verified: same cache, same dedup, same path conventions; API is stricter-validated than Blazor.fixes #104
🤖 Generated with Claude Code
POST /api/artwork/uploads (multipart/form-data) accepting logo and watermark images. Validates content type (png/jpeg/gif/webp) and size (SystemEnvironment.MaximumUploadMb, default 10MB) mirroring the Blazor upload path; stores via IImageCache.SaveArtworkToCache; returns { path, contentType } consumable by channel create/update. Includes handler + controller tests, OpenAPI 422 contract-test entry, and regenerated v1.json. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>