<?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 File Links in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Links/m-p/410225#M22205</link>
    <description>&lt;P&gt;Hi. I have made my own app using dropbox api. I am having different json files in my dropbox, my app does the following functionality&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) download specific file&lt;/P&gt;
&lt;P&gt;2) edit that file&lt;/P&gt;
&lt;P&gt;3) after editing, upload that fille to dropbox on same path using below method&lt;/P&gt;
&lt;PRE&gt;String remoteFileName = localFile.getName();&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try &lt;/SPAN&gt;(InputStream inputStream = &lt;SPAN&gt;new &lt;/SPAN&gt;FileInputStream(localFile)) {&lt;BR /&gt;    &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;.files().uploadBuilder(remoteFolderPath + &lt;SPAN&gt;"/" &lt;/SPAN&gt;+ remoteFileName)&lt;BR /&gt;            .withMode(WriteMode.&lt;SPAN&gt;OVERWRITE&lt;/SPAN&gt;)&lt;BR /&gt;            .uploadAndFinish(inputStream);&lt;BR /&gt;} &lt;SPAN&gt;catch &lt;/SPAN&gt;(DbxException | IOException e) {&lt;BR /&gt;    &lt;SPAN&gt;mException &lt;/SPAN&gt;= e;&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;As i do not want to change my file link so i am using&lt;/P&gt;
&lt;PRE&gt;.withMode(WriteMode.&lt;SPAN&gt;OVERWRITE&lt;/SPAN&gt;)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;as i am fetching my json files from my other apps which contains these file links so i do not want to change my file links. Everything is going well and the links are not changing and updating files successfully. I just want to ask is that a good approach and will it work be in future too? Means editing files without changing links&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 17:29:28 GMT</pubDate>
    <dc:creator>qazimuneeb1</dc:creator>
    <dc:date>2020-04-15T17:29:28Z</dc:date>
    <item>
      <title>File Links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Links/m-p/410225#M22205</link>
      <description>&lt;P&gt;Hi. I have made my own app using dropbox api. I am having different json files in my dropbox, my app does the following functionality&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) download specific file&lt;/P&gt;
&lt;P&gt;2) edit that file&lt;/P&gt;
&lt;P&gt;3) after editing, upload that fille to dropbox on same path using below method&lt;/P&gt;
&lt;PRE&gt;String remoteFileName = localFile.getName();&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try &lt;/SPAN&gt;(InputStream inputStream = &lt;SPAN&gt;new &lt;/SPAN&gt;FileInputStream(localFile)) {&lt;BR /&gt;    &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;mDbxClient&lt;/SPAN&gt;.files().uploadBuilder(remoteFolderPath + &lt;SPAN&gt;"/" &lt;/SPAN&gt;+ remoteFileName)&lt;BR /&gt;            .withMode(WriteMode.&lt;SPAN&gt;OVERWRITE&lt;/SPAN&gt;)&lt;BR /&gt;            .uploadAndFinish(inputStream);&lt;BR /&gt;} &lt;SPAN&gt;catch &lt;/SPAN&gt;(DbxException | IOException e) {&lt;BR /&gt;    &lt;SPAN&gt;mException &lt;/SPAN&gt;= e;&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;As i do not want to change my file link so i am using&lt;/P&gt;
&lt;PRE&gt;.withMode(WriteMode.&lt;SPAN&gt;OVERWRITE&lt;/SPAN&gt;)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;as i am fetching my json files from my other apps which contains these file links so i do not want to change my file links. Everything is going well and the links are not changing and updating files successfully. I just want to ask is that a good approach and will it work be in future too? Means editing files without changing links&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 17:29:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Links/m-p/410225#M22205</guid>
      <dc:creator>qazimuneeb1</dc:creator>
      <dc:date>2020-04-15T17:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: File Links</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Links/m-p/410321#M22207</link>
      <description>&lt;P&gt;Yes, this is fine.&amp;nbsp;Dropbox shared links don't break when editing the linked files, and I'm not aware of any plans to introduce a change like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One note though, in general&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/WriteMode.html#update-java.lang.String-" target="_self"&gt;WriteMode.update&lt;/A&gt; is more recommended&amp;nbsp;than the overwrite mode, as it's safer. Using overwrite can lead to your app overwriting new changes that it wasn't aware of.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 14:57:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/File-Links/m-p/410321#M22207</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-15T14:57:42Z</dc:date>
    </item>
  </channel>
</rss>

