Back to Alamofire

UploadRequest

docs/Classes/UploadRequest.html

5.12.01.3 KB
Original Source

UploadRequest

public final class UploadRequest : DataRequest, @unchecked Sendable

DataRequest subclass which handles Data upload from memory, file, or stream using URLSessionUploadTask.

`

                Uploadable
                `

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

See more

Declaration

Swift

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

Initial State

`

                upload
                `

The UploadableConvertible value used to produce the Uploadable value for this instance.

Declaration

Swift

public let upload: any UploadableConvertible

`

                fileManager
                `

FileManager used to perform cleanup tasks, including the removal of multipart form encoded payloads written to disk.

Declaration

Swift

public let fileManager: FileManager

Mutable State

`

                uploadable
                `

Uploadable value used by the instance.

Declaration

Swift

public var uploadable: Uploadable?

`

                cleanup()
                `

Declaration

Swift

override public func cleanup()