Ios Dropbox API上载文件

Ios Dropbox API上载文件,ios,dropbox,Ios,Dropbox,我正在尝试使用用于iOS的API将一个.txt文件的编辑版本上载到Dropbox,但我似乎不知道如何使用API调用的ParentRev部分。我用的电话是 [[self restClient] uploadFile:dropboxFilename toPath:dropboxDirectory withParentRev:[dropboxDirectory stringByAppendingString:dropboxFilename] fromPath:localDirectory]; dro

我正在尝试使用用于iOS的API将一个.txt文件的编辑版本上载到Dropbox,但我似乎不知道如何使用API调用的ParentRev部分。我用的电话是

[[self restClient] uploadFile:dropboxFilename toPath:dropboxDirectory withParentRev:[dropboxDirectory stringByAppendingString:dropboxFilename] fromPath:localDirectory];
dropbox文件名是dropbox中文件的标题。 dropbox目录是文件在dropbox中的位置。 localDirectory是设备上文件的路径

如果我使用“nil”,上传效果很好,但它会创建一个名为“example(1).txt”的新文件(当然)。 但是如果我尝试设置文件的早期版本,它将返回500错误


我还没有在网上找到任何关于如何正确使用ParentRev的文档。

结果表明ParentRev并不像我想的那样是以前的文件名。它只是一个从元数据中检索的值,您可以下载该文件。

知道如何使用
ParentRev