ContentDescriptor
public struct ContentDescriptor
Represents info about an attachment data to be uploaded.
-
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
-
Declaration
Swift
public init(data: Data, mimeType: String, fileName: String, friendlyName: String)Parameters
dataThe actual data of the attachment.
mimeTypeThe MIME type relevant to the attachment type.
fileNameThe obscured name of the attachment file sent to the server.
friendlyNameThe friendly (original) name of the attachment file
-
Declaration
Swift
public init(url: URL, mimeType: String, fileName: String, friendlyName: String)Parameters
dataThe actual data of the attachment.
mimeTypeThe MIME type relevant to the attachment type.
fileNameThe obscured name of the attachment file sent to the server.
friendlyNameThe friendly (original) name of the attachment file
View on GitHub