Uploadable

public enum Uploadable : @unchecked Sendable
extension UploadRequest.Uploadable: UploadableConvertible

Type describing the origin of the upload, whether Data, file, or stream.

  • Upload from the provided Data value.

    Declaration

    Swift

    case data(Data)
  • Upload from the provided file URL, as well as a Bool determining whether the source file should be automatically removed once uploaded.

    Declaration

    Swift

    case file(URL, shouldRemove: Bool)
  • Upload from the provided InputStream.

    Declaration

    Swift

    case stream(InputStream)
  • Declaration

    Swift

    public func createUploadable() throws -> UploadRequest.Uploadable