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:
- Returns:
The Cloudflare CDN URL for the uploaded image.
- Return type:
- Raises:
GameSheetError – If the file is not found, is not a valid image, or the upload fails.
AuthenticationError – If the server returns 401.