FileInfo

public struct FileInfo

A custom type to keep data about a file that should be uploaded.

  • The actual file contents as a Data object.

    Declaration

    Swift

    public var fileContents: Data?
  • The MIME type of the file.

    See GTRest.MimeType enum for common values optionally.

    Declaration

    Swift

    public var mimetype: String?
  • The name of the file.

    Declaration

    Swift

    public var filename: String?
  • Public initializer.

    Declaration

    Swift

    public init()