uploadTask(withResumeData:)
Creates an upload task from a resume data blob. Requires the server to support the latest resumable uploads Internet-Draft from the HTTP Working Group, found at https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/ If resuming from an upload file, the file must still exist and be unmodified. If the upload cannot be successfully resumed, URLSession:task:didCompleteWithError: will be called.
Declaration
func uploadTask(withResumeData resumeData: Data) -> URLSessionUploadTaskParameters
- resumeData:
Resume data blob from an incomplete upload, such as data returned by the cancelByProducingResumeData: method.
Mentioned in
Return Value
A new session upload task, or nil if the resumeData is invalid.