I'm running into trouble uploading too many files at once. How do I upload asynchronously. Or even just a hint for which direction to look for answers.
What I'm doing is saving the same under several different names contained in the fileNumberArray.
for number in fileNumberArray {
let request = client?.files.upload(path: "/Path/(number).mp3", mode: .overwrite, autorename: false, clientModified: nil, mute: false, input: audioURL)
.response { response, error in
if let response = response {
print(response)
} else if let error = error {
print(error)
}
}
.progress { progressData in
if let myProgress = progressData as? Progress {
self.progressView.progress = Float(progressData.fractionCompleted)
}
}
}
})