Attachment
public struct Attachment : Equatable, Sendable
Represents info about an uploaded attachment.
-
The URL where the attachment can be found.
Declaration
Swift
public let url: String -
A friendly name to display to the user.
Declaration
Swift
public let friendlyName: String -
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
-
Creates an
Attachmentvalue.Declaration
Swift
public init(url: String, friendlyName: String, mimeType: String, fileName: String)Parameters
urlThe remote URL the file is hosted at.
friendlyNameA human-readable name suitable for display in the UI.
mimeTypeThe MIME type (e.g.
image/png).fileNameThe original on-disk filename.
View on GitHub