//core/com.kustomer.core.models.chat/KusExternalAttachment
[androidJvm]
data class KusExternalAttachment(val name: String, val contentType: String, val contentLength: Long, val url: String, val contentHash: String? = null)
Metadata for an attachment the host app has already uploaded to its own storage.
Pass this to com.kustomer.core.providers.KusChatProvider.sendMessageWithExternalAttachments (or the UI SDK attach-button completion). The SDK registers it with Kustomer via externalUrl and never uploads bytes to Kustomer S3.
| KusExternalAttachment | [androidJvm] constructor(name: String, contentType: String, contentLength: Long, url: String, contentHash: String? = null) |
| Name | Summary |
|---|---|
| contentHash | [androidJvm] val contentHash: String? = null Optional host-side integrity hash (for example sha256). Accepted for API parity with iOS / chat-web, but not sent on POST .../chat/attachments — chat-api attachment_create rejects unknown properties (additionalProperties: false). |
| contentLength | [androidJvm] val contentLength: Long Size in bytes. |
| contentType | [androidJvm] val contentType: String MIME type, e.g. image/png. |
| name | [androidJvm] val name: String Display name shown in the metadata card. |
| url | [androidJvm] val url: String Absolute https URL of the host-owned file. |