有没有办法判断 Dropbox 块上传提交是否成功?

Is there a way to tell if a Dropbox chunk upload commit was successful?

在块上传结束时,我使用以下命令提交文件:

self.restClient.uploadFile(filename, toPath: destDir, withParentRev: nil, fromUploadId: uploadId)

这次提交会失败吗?这个方法returns时有没有成功或者错误的方法是运行?

€编辑:您可以使用几种委托方法

    func restClient(client: DBRestClient!, loadedFile destPath: String!, contentType: String!, metadata: DBMetadata!) {
        NSLog("File DOWNLOADED successfully to path: %@", destPath);
    }

    func restClient(client: DBRestClient!, loadFileFailedWithError error: NSError!) {
        NSLog("File DOWNLOAD failed with error: %@", error)
    }

    func restClient(client: DBRestClient!, uploadFileFailedWithError error: NSError!) {
        NSLog("File UPLOAD failed with error: %@", error)
    }