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
Datavalue.Declaration
Swift
case data(Data) -
Upload from the provided file
URL, as well as aBooldetermining 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
View on GitHub
Install in Dash