ContentDescriptor

public struct ContentDescriptor

Represents info about an attachment data to be uploaded.

Properties

  • The actual data of the attachment.

    Declaration

    Swift

    public let data: ContentDescriptorSource
  • The MIME type relevant to the attachment type.

    Declaration

    Swift

    public let mimeType: String
  • The name of the attachment file.

    Declaration

    Swift

    public let fileName: String
  • The friendly (original) name of the file

    Declaration

    Swift

    public let friendlyName: String

Init

  • Declaration

    Swift

    public init(data: Data, mimeType: String, fileName: String, friendlyName: String)

    Parameters

    data

    The actual data of the attachment.

    mimeType

    The MIME type relevant to the attachment type.

    fileName

    The obscured name of the attachment file sent to the server.

    friendlyName

    The friendly (original) name of the attachment file

  • Declaration

    Swift

    public init(url: URL, mimeType: String, fileName: String, friendlyName: String)

    Parameters

    data

    The actual data of the attachment.

    mimeType

    The MIME type relevant to the attachment type.

    fileName

    The obscured name of the attachment file sent to the server.

    friendlyName

    The friendly (original) name of the attachment file