문제

I am trying to upload a file to Dropbox and overwrite the previous file with the same name, but I can't quite understand how to use the metadata appropriately. I based my code on the Dropbox examples, so the restClients remain as shown there.

This is part of my code:

[[self restClient] loadMetadata:filename];
[self.restClient uploadFile:filename toPath:destDir withParentRev:nil fromPath:localPath];

I know the withParentRevparameter should be changed, but I do not what to change it to. Where is the metadata saved?

도움이 되었습니까?

해결책

In your restClient:loadedMetadata: delegate method, you get the parent revision from the DBMetadata object using the rev property.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top