<?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: upload File: update operation in mode field is not working in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186147#M7889</link>
    <description>&lt;P&gt;Hi, Steve.&lt;/P&gt;
&lt;P&gt;I also encountered exactly same problem.&lt;/P&gt;
&lt;P&gt;I'm developing iOS app and switching from dropbox-ios-sdk to SwiftyDropbox(v1 -&amp;gt; v2).&lt;/P&gt;
&lt;P&gt;And almost&amp;nbsp;features works fine, but I can't resolve this problem with upload feature.&lt;/P&gt;
&lt;P&gt;I check upload feature with SwiftyDropbox and curl command.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And when I try to upload some files with curl command, it won't work as I expected.&lt;BR /&gt;So I suspect&amp;nbsp;upload api.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="p1"&gt;```&lt;BR /&gt;curl -X POST &lt;A href="https://content.dropboxapi.com/2/files/upload" rel="nofollow noreferrer"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt; \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; --header "Authorization: Bearer ***********************************************************************************************” \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; --header "Dropbox-API-Arg: {\"path\": \”/sample.jpg\",\"mode\": \”add\”,\”autorename\": true,\"mute\": false}" \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; --header "Content-Type: application/octet-stream" \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; --data-binary @sample.jpg&lt;BR /&gt;```&lt;/P&gt;
&lt;P class="p1"&gt;{"name": "sample.jpg", "path_lower": "/sample.jpg", "path_display": "/sample.jpg", "id": "id:********************", "client_modified": "2016-08-27T13:55:11Z", "server_modified": "2016-08-27T13:55:11Z", "rev": "135cc0934ed6f", "size": 527359}&lt;BR /&gt;&lt;BR /&gt;I expect that file name which is included within response changes like below when I call api several times, but api returns above result when I call api several times.&lt;BR /&gt;Is my expectation is wrong?&lt;BR /&gt;&lt;BR /&gt;sample.jpg&lt;BR /&gt;sample1.jpg&lt;BR /&gt;sample2.jpg&lt;BR /&gt;sample3.jpg&lt;BR /&gt;...&lt;/P&gt;</description>
    <pubDate>Sat, 27 Aug 2016 21:14:26 GMT</pubDate>
    <dc:creator>田畑浩平</dc:creator>
    <dc:date>2016-08-27T21:14:26Z</dc:date>
    <item>
      <title>upload File: update operation in mode field is not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186143#M7885</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am working on developing an integration, would like to know the behaviour of upload file activity for mode field. Below are the steps&lt;/P&gt;
&lt;P&gt;1. I have defined valid Path and upload a file&lt;/P&gt;
&lt;P&gt;2. file is uploaded and ID and rev is generated in response&lt;/P&gt;
&lt;P&gt;3. now i have updated the same file (in local drive) which i have uploaded in above steps&lt;/P&gt;
&lt;P&gt;4. again try to upload that file (updated content) by using mode value as&lt;/P&gt;
&lt;P&gt;"mode": {".tag":"update","update":"&amp;lt;rev no&amp;gt;"},&lt;/P&gt;
&lt;P&gt;5. In response, again same rev is displayed. It seems that file is not uploaded with updated content&lt;/P&gt;
&lt;P&gt;Is there any API issue?. or Please suggest if i am executing wrong steps?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Maithili&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:33:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186143#M7885</guid>
      <dc:creator>Maithili P.</dc:creator>
      <dc:date>2019-05-29T09:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: upload File: update operation in mode field is not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186144#M7886</link>
      <description>&lt;P&gt;Are you actually uploading new content, or is the new&amp;nbsp;file identical to the old file? (If the content is identical, Dropbox basically&amp;nbsp;ignores the update.)&lt;/P&gt;
&lt;P&gt;If that's not it, please share some code&amp;nbsp;that can reproduce the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 23:20:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186144#M7886</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-05-26T23:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: upload File: update operation in mode field is not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186145#M7887</link>
      <description>&lt;P&gt;Thanks Steve&lt;/P&gt;
&lt;P&gt;Actually I am trying to update the existing file&lt;/P&gt;
&lt;P&gt;For ex:&lt;/P&gt;
&lt;P&gt;1. I have uploaded file "file1.xlsx" with data as "ABCD"&lt;/P&gt;
&lt;P&gt;2. Now in my local file I have updated the file content as "ABCD-1234" and again try to upload it in Dropbox file "file1.xlsx".&lt;/P&gt;
&lt;P&gt;{"path": "/folder1/file1.xlsx","mode": {".tag":"update", "update":"&amp;lt;rev&amp;gt;"},"autorename": false, "mute": false }&lt;/P&gt;
&lt;P&gt;3. Upload is done but the "file1.xlsx" is not updated. It is showing old content i.e "ABCD"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 12:42:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186145#M7887</guid>
      <dc:creator>Maithili P.</dc:creator>
      <dc:date>2016-05-27T12:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: upload File: update operation in mode field is not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186146#M7888</link>
      <description>&lt;P&gt;If the upload succeeds, that means the file was indeed updated (or the contents weren't changed). Some ideas of things to check:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Did you really send updated content via the API? (E.g. maybe you're editing the wrong file,&amp;nbsp;not the one you're actually uploading.)&lt;/LI&gt;
&lt;LI&gt;Are you looking at the right file when you're trying to verify that the upload succeeded? (E.g. maybe the file is being updated but you're checking the wrong file.)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;As a sanity check, you might try logging the file size and timestamp&amp;nbsp;in your code right before upload. That way you can double check that you're uploading what you&amp;nbsp;expect.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 16:41:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186146#M7888</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-05-27T16:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: upload File: update operation in mode field is not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186147#M7889</link>
      <description>&lt;P&gt;Hi, Steve.&lt;/P&gt;
&lt;P&gt;I also encountered exactly same problem.&lt;/P&gt;
&lt;P&gt;I'm developing iOS app and switching from dropbox-ios-sdk to SwiftyDropbox(v1 -&amp;gt; v2).&lt;/P&gt;
&lt;P&gt;And almost&amp;nbsp;features works fine, but I can't resolve this problem with upload feature.&lt;/P&gt;
&lt;P&gt;I check upload feature with SwiftyDropbox and curl command.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And when I try to upload some files with curl command, it won't work as I expected.&lt;BR /&gt;So I suspect&amp;nbsp;upload api.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="p1"&gt;```&lt;BR /&gt;curl -X POST &lt;A href="https://content.dropboxapi.com/2/files/upload" rel="nofollow noreferrer"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt; \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; --header "Authorization: Bearer ***********************************************************************************************” \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; --header "Dropbox-API-Arg: {\"path\": \”/sample.jpg\",\"mode\": \”add\”,\”autorename\": true,\"mute\": false}" \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; --header "Content-Type: application/octet-stream" \&lt;BR /&gt;&amp;nbsp; &amp;nbsp; --data-binary @sample.jpg&lt;BR /&gt;```&lt;/P&gt;
&lt;P class="p1"&gt;{"name": "sample.jpg", "path_lower": "/sample.jpg", "path_display": "/sample.jpg", "id": "id:********************", "client_modified": "2016-08-27T13:55:11Z", "server_modified": "2016-08-27T13:55:11Z", "rev": "135cc0934ed6f", "size": 527359}&lt;BR /&gt;&lt;BR /&gt;I expect that file name which is included within response changes like below when I call api several times, but api returns above result when I call api several times.&lt;BR /&gt;Is my expectation is wrong?&lt;BR /&gt;&lt;BR /&gt;sample.jpg&lt;BR /&gt;sample1.jpg&lt;BR /&gt;sample2.jpg&lt;BR /&gt;sample3.jpg&lt;BR /&gt;...&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2016 21:14:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186147#M7889</guid>
      <dc:creator>田畑浩平</dc:creator>
      <dc:date>2016-08-27T21:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: upload File: update operation in mode field is not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186148#M7890</link>
      <description>&lt;P&gt;As I said earlier in this thread:&amp;nbsp;"Are you actually uploading new content, or is the new&amp;nbsp;file identical to the old file? (If the content is identical, Dropbox basically&amp;nbsp;ignores the update.)"&lt;/P&gt;
&lt;P&gt;My guess is that you're not changing the contents of sample.jpg in between upload attempts. If the content is unchanged, there's no conflict, and thus there's no rename.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Aug 2016 04:26:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186148#M7890</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-08-28T04:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: upload File: update operation in mode field is not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186149#M7891</link>
      <description>&lt;P&gt;Thanks Steve.&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;overlooked what you said.&lt;BR /&gt;I tried to upload new file identical to the old file.&lt;/P&gt;
&lt;P&gt;With&amp;nbsp;dropbox-ios-sdk(v1 API?), it&amp;nbsp;rename files&lt;BR /&gt;when I tried to upload new file identical to the old file.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is it specification change from v1 API to v2 API?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Aug 2016 10:00:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186149#M7891</guid>
      <dc:creator>田畑浩平</dc:creator>
      <dc:date>2016-08-28T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: upload File: update operation in mode field is not working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186150#M7892</link>
      <description>&lt;P&gt;Are you sure? I believe API v1 had&amp;nbsp;the same&amp;nbsp;behavior.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 00:44:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-File-update-operation-in-mode-field-is-not-working/m-p/186150#M7892</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-08-29T00:44:49Z</dc:date>
    </item>
  </channel>
</rss>

