HOC SiteDokümantasyon

create_upload_url

Return a 15 minute PUT URL for a file up to 5 GB. uploadId is an HMAC of the website, key, size, content type, directory, and expiry. Send the returned headers with the PUT. Then call complete_upload. HEIC and HEIF are rejected here because they are converted to JPEG before storage, which a direct PUT cannot do; send those to upload_file instead.

create_upload_url · Grup: files

Girdiler

websiteId

zorunlu

fileName

zorunlu

contentType

zorunlu

size

zorunlu

directoryId

isteğe bağlı

Şema

{
  "name": "create_upload_url",
  "group": "files",
  "inputFields": [
    {
      "name": "websiteId",
      "required": true
    },
    {
      "name": "fileName",
      "required": true
    },
    {
      "name": "contentType",
      "required": true
    },
    {
      "name": "size",
      "required": true
    },
    {
      "name": "directoryId",
      "required": false
    }
  ]
}

Eşlendiği uçlar

  • POST /api/v1/{locale}/{websiteId}/files/upload-url → API

İlgili