Upload locker-room media
Changed onMultipart media for locker-room posts (UGC terms gated). file is a JPEG/PNG/WebP/GIF image (≤8MB) or MP4/MOV/WebM video (≤40MB); optional poster is a client-supplied video thumbnail image. For videos without a decodable supplied poster the server extracts a real frame server-side; when extraction fails the solid placeholder PNG is stored instead — the upload still succeeds. data.posterKind (supplied | extracted | placeholder) reports video poster provenance and is present only when type is video; photo responses omit it. Provenance is also recorded server-side in the upload ledger and persisted on the media row at post create — clients never submit it.
Request
- Base URLhttps://app.d-sports.org
- AuthHTTP bearer
Request body multipart/form-data
Response
{ success, data: { url, type, thumbnailUrl, posterKind? } } — posterKind present only for type: "video"; extraction failure still returns 200 with posterKind: "placeholder"
Changes
- breaking
added required request body
- info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- breaking