Hi there,
In our iOS app we are uploading files to our Dropbox with this Swift method:
func upload(_ destinationPath: String, fileUrl: URL, completion: @escaping (Bool) -> Void) {
client.files.upload(path: destinationPath, input: fileUrl)
.response { response, error in
if error != nil {
print(error?.description)
}
if let response = response {
completion(true)
} else {
print(error)
completion(false)
}
DispatchQueue.main.async {
SVProgressHUD.dismiss()
}
}
.progress { progressData in
let completedUnitCount = Float(progressData.completedUnitCount)
let totalUnitCount = Float(progressData.totalUnitCount)
let progress = completedUnitCount / totalUnitCount
DispatchQueue.main.async {
SVProgressHUD.show(withStatus: "Uploading Plan documents to dropbox...\n\(Int(progress * 100))% completed")
}
}
}
It's been working fine until now...
One of our users was uploading a big file (521.5 mb) and encountered an uploading failure error at last moment having reached 100% upload. The Dropbox API threw this error and as a result no file was uploaded:

However, uploading works fine with smaller files. Just wondering if there is any file size upload limit in Dropbox? How could we fix the upload failure? Your help is much appreciated.
Cheers,
Shimin