Skip to content

FilePart

A file content part. The source may be a URL or base64-encoded data.

---
title: FilePart
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class ContentPart {
      <<abstract>>
        +string kind
    }
    ContentPart <|-- FilePart
    class FilePart {
        +string kind
        +string source
        +string mediaType
    }
source: https://example.com/document.pdf
mediaType: application/pdf
NameTypeDescription
kindstringThe kind identifier for file content
sourcestringURL or base64-encoded file data
mediaTypestringMIME type of the file (e.g., ‘application/pdf’)