AllowedFileType

public struct AllowedFileType

Details about a file type allowed to be uploaded

Properties

  • Allowed mime type.

    This may be of the form [type/*] in which case any subtype is allowed as long as the mime type type portion matches “type”.

    Declaration

    Swift

    public let mimeType: String
  • Description of the allowed mime type.

    Declaration

    Swift

    public let details: String

Init

  • Creates a new allowed file type description.

    Declaration

    Swift

    public init(mimeType: String, details: String)

    Parameters

    mimeType

    The MIME type string (e.g., “image/png” or a wildcard like “image/*”).

    details

    A human-readable description of the MIME type.