<?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: Sharing link doesn't link to the recently updated version of the file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharing-link-doesn-t-link-to-the-recently-updated-version-of-the/m-p/396507#M21774</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1262805"&gt;@Lak1&lt;/a&gt;&amp;nbsp;We can't offer help with the "node-red-node-dropbox" module as that's made by a third party, but we'll be happy to help with the&amp;nbsp;Dropbox functionality itself.&lt;/P&gt;
&lt;P&gt;I just gave this a try myself and it is working correctly for me. Here's some API commands and output showing:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;uploading a file&lt;/LI&gt;
&lt;LI&gt;creating a shared link for the file&lt;/LI&gt;
&lt;LI&gt;accessing the shared link with raw=1 and getting the file contents&lt;/LI&gt;
&lt;LI&gt;updating the file with different contents&lt;/LI&gt;
&lt;LI&gt;accessing the same shared link with raw=1 again and getting the updated file contents&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Dropbox-API-Arg: {\"path\": \"/test_396449.txt\"}" \
    --header "Content-Type: application/octet-stream" \
    --data-binary "test data version 1"

# {
#   "name": "test_396449.txt",
#   "path_lower": "/test_396449.txt",
#   "path_display": "/test_396449.txt",
#   "id": "id:25N5ksooX-sAAAAAAAOQzw",
#   "client_modified": "2020-02-12T16:17:02Z",
#   "server_modified": "2020-02-12T16:17:02Z",
#   "rev": "59e634d829303021eccc7",
#   "size": 19,
#   "is_downloadable": true,
#   "content_hash": "8aff3fe845b4e724436b87f745efd608286b5bc6d7c94317dbe324cf1445824a"
# }

curl -X POST https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"/test_396449.txt\"}"

# {
#   ".tag": "file",
#   "url": "https://www.dropbox.com/s/wet7bqdjwwor8sl/test_396449.txt?dl=0",
#   "id": "id:25N5ksooX-sAAAAAAAOQzw",
#   "name": "test_396449.txt",
#   "path_lower": "/test_396449.txt",
# &amp;lt;redacted for brevity&amp;gt;
#   "client_modified": "2020-02-12T16:17:02Z",
#   "server_modified": "2020-02-12T16:17:02Z",
#   "rev": "59e634d829303021eccc7",
#   "size": 19
# }


curl -L "https://www.dropbox.com/s/wet7bqdjwwor8sl/test_396449.txt?raw=1"

# test data version 1

curl -X POST https://content.dropboxapi.com/2/files/upload \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Dropbox-API-Arg: {\"path\": \"/test_396449.txt\",\"mode\": \"overwrite\"}" \
    --header "Content-Type: application/octet-stream" \
    --data-binary "test data version 2"

# {
#   "name": "test_396449.txt",
#   "path_lower": "/test_396449.txt",
#   "path_display": "/test_396449.txt",
#   "id": "id:25N5ksooX-sAAAAAAAOQzw",
#   "client_modified": "2020-02-12T16:17:49Z",
#   "server_modified": "2020-02-12T16:17:49Z",
#   "rev": "59e63504c98d3021eccc7",
#   "size": 19,
#   "is_downloadable": true,
#   "content_hash": "f6e2c4101df704af41746f4e31737aba964882bcac17983f1d969b56fef39fa2"
# }


curl -L "https://www.dropbox.com/s/wet7bqdjwwor8sl/test_396449.txt?raw=1"

# test data version 2&lt;/PRE&gt;
&lt;P&gt;As&amp;nbsp;Здравко mentioned, make sure you're updating and accessing the same file each time.&lt;/P&gt;
&lt;P&gt;If something still isn't working as expected, please share the steps to reproduce the issue and the unexpected output you're getting so we can look into it for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 17:03:20 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-02-12T17:03:20Z</dc:date>
    <item>
      <title>Sharing link doesn't link to the recently updated version of the file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharing-link-doesn-t-link-to-the-recently-updated-version-of-the/m-p/396449#M21772</link>
      <description>&lt;P&gt;I have noticed this issue(The sharing links are not getting updated whenever a change is made to a file. The sharing URL still shows the initial file.) in 2 places.&lt;/P&gt;&lt;P&gt;1) In the dropbox in node from the node-red-node-dropbox module in Node-RED. This node should constantly watch a Dropbox folder for changes and it should emit messages when any changes occur. This doesn't work.&lt;BR /&gt;2) Say I'm uploading a file called image.jpg to dropbox and when I'm downloading the same file using the URL&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/s/xxxxxxx/image.jpg?raw=1after" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.dropbox.com/s/xxxxxxx/image.jpg?raw=1&lt;/A&gt;&amp;nbsp;after another update to that file, the changed or updated version of the image is not being downloaded.&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 13:59:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharing-link-doesn-t-link-to-the-recently-updated-version-of-the/m-p/396449#M21772</guid>
      <dc:creator>Lak1</dc:creator>
      <dc:date>2020-02-12T13:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing link doesn't link to the recently updated version of the file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharing-link-doesn-t-link-to-the-recently-updated-version-of-the/m-p/396482#M21773</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1262805"&gt;@Lak1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Are you really trying access updated version of the same file or new file using the same name?! The question is rhetoric of course. What I mean... If you update existing file in the most simple way (last depends on your actions, as on software you use - sometimes editing programs are guilty) then new version of the same file (here same file means same file id) is created. If you &lt;STRONG&gt;replace&lt;/STRONG&gt; existing file with new one (emphasize on replace, not just update), then the new file version isn't related to the old file (again, here old file mean old id), but to new file! Some programs replace your files whenever save gets performed, &lt;EM&gt;without warning behind you&lt;/EM&gt;, so you have to be careful what you use. Shared links get stick to the file ids, not file names! That's where your problem comes from, most probably. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt; Try to change your work in a way, that files don't gonna removed in any one moment, or new links have to be created every time.&lt;/P&gt;&lt;P&gt;Hope this gives an idea.&lt;/P&gt;&lt;P&gt;ADD: A workaround could be share a containing folder instead file, if this works for you.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 15:58:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharing-link-doesn-t-link-to-the-recently-updated-version-of-the/m-p/396482#M21773</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-02-12T15:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing link doesn't link to the recently updated version of the file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharing-link-doesn-t-link-to-the-recently-updated-version-of-the/m-p/396507#M21774</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1262805"&gt;@Lak1&lt;/a&gt;&amp;nbsp;We can't offer help with the "node-red-node-dropbox" module as that's made by a third party, but we'll be happy to help with the&amp;nbsp;Dropbox functionality itself.&lt;/P&gt;
&lt;P&gt;I just gave this a try myself and it is working correctly for me. Here's some API commands and output showing:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;uploading a file&lt;/LI&gt;
&lt;LI&gt;creating a shared link for the file&lt;/LI&gt;
&lt;LI&gt;accessing the shared link with raw=1 and getting the file contents&lt;/LI&gt;
&lt;LI&gt;updating the file with different contents&lt;/LI&gt;
&lt;LI&gt;accessing the same shared link with raw=1 again and getting the updated file contents&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Dropbox-API-Arg: {\"path\": \"/test_396449.txt\"}" \
    --header "Content-Type: application/octet-stream" \
    --data-binary "test data version 1"

# {
#   "name": "test_396449.txt",
#   "path_lower": "/test_396449.txt",
#   "path_display": "/test_396449.txt",
#   "id": "id:25N5ksooX-sAAAAAAAOQzw",
#   "client_modified": "2020-02-12T16:17:02Z",
#   "server_modified": "2020-02-12T16:17:02Z",
#   "rev": "59e634d829303021eccc7",
#   "size": 19,
#   "is_downloadable": true,
#   "content_hash": "8aff3fe845b4e724436b87f745efd608286b5bc6d7c94317dbe324cf1445824a"
# }

curl -X POST https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"/test_396449.txt\"}"

# {
#   ".tag": "file",
#   "url": "https://www.dropbox.com/s/wet7bqdjwwor8sl/test_396449.txt?dl=0",
#   "id": "id:25N5ksooX-sAAAAAAAOQzw",
#   "name": "test_396449.txt",
#   "path_lower": "/test_396449.txt",
# &amp;lt;redacted for brevity&amp;gt;
#   "client_modified": "2020-02-12T16:17:02Z",
#   "server_modified": "2020-02-12T16:17:02Z",
#   "rev": "59e634d829303021eccc7",
#   "size": 19
# }


curl -L "https://www.dropbox.com/s/wet7bqdjwwor8sl/test_396449.txt?raw=1"

# test data version 1

curl -X POST https://content.dropboxapi.com/2/files/upload \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Dropbox-API-Arg: {\"path\": \"/test_396449.txt\",\"mode\": \"overwrite\"}" \
    --header "Content-Type: application/octet-stream" \
    --data-binary "test data version 2"

# {
#   "name": "test_396449.txt",
#   "path_lower": "/test_396449.txt",
#   "path_display": "/test_396449.txt",
#   "id": "id:25N5ksooX-sAAAAAAAOQzw",
#   "client_modified": "2020-02-12T16:17:49Z",
#   "server_modified": "2020-02-12T16:17:49Z",
#   "rev": "59e63504c98d3021eccc7",
#   "size": 19,
#   "is_downloadable": true,
#   "content_hash": "f6e2c4101df704af41746f4e31737aba964882bcac17983f1d969b56fef39fa2"
# }


curl -L "https://www.dropbox.com/s/wet7bqdjwwor8sl/test_396449.txt?raw=1"

# test data version 2&lt;/PRE&gt;
&lt;P&gt;As&amp;nbsp;Здравко mentioned, make sure you're updating and accessing the same file each time.&lt;/P&gt;
&lt;P&gt;If something still isn't working as expected, please share the steps to reproduce the issue and the unexpected output you're getting so we can look into it for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 17:03:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharing-link-doesn-t-link-to-the-recently-updated-version-of-the/m-p/396507#M21774</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-02-12T17:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sharing link doesn't link to the recently updated version of the file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharing-link-doesn-t-link-to-the-recently-updated-version-of-the/m-p/396678#M21778</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Actually, the problem was in the dropbox out node in node-red. I was using it to send image files to dropbox. The node has not been updated to the latest version of Dropbox API. It was still using the overwrite method and because of that, I might have had this issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, thanks a lot,&amp;nbsp;Здравко&amp;nbsp;and Greg K.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I really appreciate your replies.&amp;nbsp;Your answers gave me new insights. Never thought there will be something called file ID which is different from the file name. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'll use the API endpoints to send my data.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 04:55:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Sharing-link-doesn-t-link-to-the-recently-updated-version-of-the/m-p/396678#M21778</guid>
      <dc:creator>Lak1</dc:creator>
      <dc:date>2020-02-13T04:55:34Z</dc:date>
    </item>
  </channel>
</rss>

