HOC SiteDocumentation

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 · Group: files

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.

Inputs

FieldRequiredNotes
websiteIdrequired
fileNamerequired
contentTyperequired
sizerequired
directoryIdoptional

Maps to

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