Filestack Documentation

Class Upload​Service

@objc(FSUploadService)
public final class UploadService: NSObject, NetworkingService  

Service used for uploading files.

UploadService UploadService URLSessionDataDelegate URLSessionDataDelegate UploadService->URLSessionDataDelegate NSObject NSObject UploadService->NSObject NetworkingService NetworkingService UploadService->NetworkingService

Conforms To

NSObject
URLSessionDataDelegate

Properties

shared

public static let shared = Shared

Shared UploadService instance.

use​Background​Session

public var useBackgroundSession: Bool = false  

Whether uploads should be performed on a background process. Defaults to false.

Methods

url​Session(_:​data​Task:​did​Receive:​completion​Handler:​)

public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void)  

url​Session(_:​data​Task:​did​Receive:​)

public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)