<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using file revs in API 2 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191307#M8352</link>
    <description>I see, thanks for pointing that out!</description>
    <pubDate>Wed, 19 Oct 2016 20:09:40 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-10-19T20:09:40Z</dc:date>
    <item>
      <title>Using file revs in API 2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191299#M8348</link>
      <description>&lt;P&gt;In API 1, whenever a file was uploaded, a file rev was provided in the meta-data's .rev property in the "did upload" delegate methods. In API 2, DBFILESFileMetadata has an equivalent .rev property - so far, so good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how do I use that file rev when uploading files? In API 1, the&amp;nbsp;-uploadFile:toPathwithParentRevfromUploadId: and&amp;nbsp;-uploadFile:toPath:withParentRev:fromPath: methods allowed you to pass a cached file rev into them so that you could overwrite the file without having to delete it first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In API 2, none of the -upload methods in DBFILESRoutes seem to allow you to pass in a file rev, so how is this done? Is it something to do with&amp;nbsp;DBFILESWriteMode? (I couldn't see that had any way to pass in a file rev, either, though.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:29:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191299#M8348</guid>
      <dc:creator>Keith B.7</dc:creator>
      <dc:date>2019-05-29T09:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using file revs in API 2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191300#M8349</link>
      <description>&lt;P&gt;Hmm, actually, looking more at DBFILESWriteMode, is the rev what you are supposed to pass into -initWithUpdate:?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, e.g.:&lt;/P&gt;&lt;PRE&gt;NSString *rev = ... // rev cached from a previous upload or listFolder: result.
DBFILESWriteMode *update = [[DBFILESWriteMode alloc] initWithUpdate:rev];

DBUploadTask *uploadTask = [self.dropboxClient.filesRoutes uploadUrl:dropboxPath mode:update autorename:@NO clientModified:localModDate mute:@NO inputUrl:localFileURL];&lt;/PRE&gt;&lt;P&gt;Is this correct, or is the rev added a different way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 19:02:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191300#M8349</guid>
      <dc:creator>Keith B.7</dc:creator>
      <dc:date>2016-10-19T19:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using file revs in API 2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191301#M8350</link>
      <description>That's correct.</description>
      <pubDate>Wed, 19 Oct 2016 19:07:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191301#M8350</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-19T19:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using file revs in API 2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191306#M8351</link>
      <description>&lt;P&gt;Thanks. I think there's a minor documentation mistake in the DBFILESWriteMode.h file that is what makes this unclear. For -initWithUpdate:, it says this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/// @param update Overwrite if the given "rev" matches the existing file's&lt;BR /&gt;/// "rev". The autorename strategy is to append the string "conflicted copy" to&lt;BR /&gt;/// the file name. For example, "document.txt" might become "document&lt;BR /&gt;/// (conflicted copy).txt" or "document (Panda's conflicted copy).txt".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a duplicate of the paragraph above it which explains the purpose of the method. Presumably this paragraph should instead state that a file rev should be passed in as the update parameter. (Likewise in&amp;nbsp;the documentation page on the site.) Because of this, I was looking elsewhere to find where I needed to input the "given 'rev'".&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 19:20:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191306#M8351</guid>
      <dc:creator>Keith B.7</dc:creator>
      <dc:date>2016-10-19T19:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using file revs in API 2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191307#M8352</link>
      <description>I see, thanks for pointing that out!</description>
      <pubDate>Wed, 19 Oct 2016 20:09:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-file-revs-in-API-2/m-p/191307#M8352</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-19T20:09:40Z</dc:date>
    </item>
  </channel>
</rss>

