- TUSKit can now leverage Background URLSession to allow uploads to continue while an app is backgrounded. See the README.md for instructions on migrating to leverage this functionality.
- It's now possible to inspect the status code for failed uploads that did not have a 200 OK HTTP status code. See the following example from the sample app:
func uploadFailed(id: UUID, error: Error, context: [String : String]?, client: TUSClient) {
Task { @MainActor in
uploads[id] = .failed(error: error)
if case TUSClientError.couldNotUploadFile(underlyingError: let underlyingError) = error,
case TUSAPIError.failedRequest(let response) = underlyingError {
print("upload failed with response \(response)")
}
}
}
- Added ability to fetch in progress / current uploads using
getStoredUploads()
on a TUSClient
instance.
- Fixed issue with missing custom headers.
- Fix compile error Xcode 14
- Added
supportedExtensions
to client
- Adding custom headers to requests.
- Compile error in
TUSBackground
- ChunkSize argument to TUSClient initializer.
- Add cancel single task.