Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

UploadRequest_Uploadable

mattt edited this page Sep 18, 2020 · 2 revisions

UploadRequest.Uploadable

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

public enum Uploadable

Inheritance

UploadableConvertible

Enumeration Cases

data

Upload from the provided Data value.

case data(:​ Data)

file

Upload from the provided file URL, as well as a Bool determining whether the source file should be automatically removed once uploaded.

case file(:​ URL, shouldRemove:​ Bool)

stream

Upload from the provided InputStream.

case stream(:​ InputStream)

Methods

createUploadable()

public func createUploadable() throws -> UploadRequest.Uploadable
Types
Protocols
Global Typealiases
Clone this wiki locally