AllowedFileType
public struct AllowedFileType
Details about a file type allowed to be uploaded
-
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
-
Creates a new allowed file type description.
Declaration
Swift
public init(mimeType: String, details: String)Parameters
mimeTypeThe MIME type string (e.g., “image/png” or a wildcard like “image/*”).
detailsA human-readable description of the MIME type.
View on GitHub