gamesheet_sdk.common.shared.image_upload module

Shared image upload functionality for GameSheet resources.

gamesheet_sdk.common.shared.image_upload.upload_image(session, image_path, image_type='image')[source]

Upload an image file and return its Cloudflare CDN URL.

Parameters:
  • session (Session) – An authenticated Session.

  • image_path (str) – Path to a local image file.

  • image_type (str) – Type of image for error messages (e.g., “photo”, “logo”).

Returns:

The Cloudflare CDN URL for the uploaded image.

Return type:

str

Raises: