[问题] Dropbox 上传档案版本问题

楼主: cryinglove (毓™)   2015-06-15 09:43:32
大家好
小弟有遇到一个问题
就是Dropbox在上传的时候 档案版本的问题
以下是上传档案的Code ( Xcode 6.3.2 , iPhone5 , iOS8.3 的环境)
let SQLuF = "123.sqlite"
let SQLpath = NSHomeDirectory().stringByAppendingString
("/Documents/123.sqlite")
self.dbRestClient.uploadFile(SQLuF , toPath: destinationPath,
withParentRev: nil, fromPath: SQLpath)
这样上传的档案都是不会覆蓋前版本
会变成 123(?).sqlite ? 表示递增的数字
http://stackoverflow.com/questions/22368054/
using-withparentrev-to-overwrite-file-using-dropbox-api-for-objective-c
http://stackoverflow.com/questions/10682749/how-to-overwrite-file-with
-parent-rev-using-dropbox-api-in-ios
(请自己接一下网址,我用短网址,系统判定广告嫌疑不给用)
找到相关的这两篇
只知道要在 restClient:loadedMetadata: 里面 还有 withParentRev 设定
可是还是弄不懂要怎样设定
有板上的先进可以指引一下如何操作吗
谢谢

Links booklink

Contact Us: admin [ a t ] ucptt.com