User

Upload locker-room media

Changed on

Multipart 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.

post/api/upload/locker-media

Request

  • Base URL
    https://app.d-sports.org
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required

Image (JPG/PNG/WebP/GIF, ≤8MB) or video (MP4/MOV/WebM, ≤40MB)

posterstring binary

Optional client-supplied video poster image (JPG/PNG/WebP/GIF)

Response

{ success, data: { url, type, thumbnailUrl, posterKind? } } — posterKind present only for type: "video"; extraction failure still returns 200 with posterKind: "placeholder"

successboolean

Changes

    • breaking

      added required request body

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status