File upload

Introduction

Uploading a file is a two-step process:

  1. Upload the bytes of your files using the upload endpoint. This returns an identifier of uploaded bytes.
  2. Use this file identifier to associate it with a compatible item according to the file context.

A file used by an item is flagged as associated. An associated file cannot be reused on another item. Unassociated files will be deleted after a few days by a garbage collector process.

Each item requires a specific file context. The compatible context is indicated in the item endpoint documentation.

Contexts

The context is mandatory for an item, and contains the specifications of the file, along with the thumbnail formats available for this item.

Context: circuit_logo
  • Accepted types: JPG, PNG
  • Maximum size: 1 MB
  • Dimension minimal: 256x256px
  • Ratio: 1/1
  • Formats: logo_small logo_medium logo_large
Context: tournament_logo
  • Accepted types: JPG, PNG
  • Maximum size: 1 MB
  • Dimension minimal: 256x256px
  • Ratio: 1/1
  • Formats: logo_small logo_medium logo_large
Context: tournament_background
  • Accepted types: JPG, PNG
  • Maximum size: 2 MB
  • Dimension minimal: 1920x480px
  • Ratio: 4/1
  • Formats: small_4x1 medium_4x1 full_4x1
Context: tournament_sponsor
  • Accepted types: JPG, PNG
  • Maximum size: 1 MB
  • Dimension minimal: 320x180px
  • Formats: tiny_16x9 small_16x9 medium_16x9
Context: match_report_proof
  • Accepted types: JPG, PNG
  • Maximum size: 4 MB
  • Dimension minimal: 64x64px
  • Formats: logo_small

Formats

Format: logo_small
  • Type: PNG
  • Dimension: 64x64px
Format: logo_medium
  • Type: PNG
  • Dimension: 128x128px
Format: logo_large
  • Type: PNG
  • Dimension: 256x256px
Format: tiny_16x9
  • Type: PNG
  • Dimension: 96x54px
Format: small_16x9
  • Type: PNG
  • Dimension: 160x90px
Format: medium_16x9
  • Type: PNG
  • Dimension: 320x180px
Format: small_4x1
  • Type: PNG
  • Dimension: 160x40px
Format: medium_4x1
  • Type: PNG
  • Dimension: 640x160px
Format: full_4x1
  • Type: PNG
  • Dimension: 1920x480px