<?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 Always overwriting the files in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Always-overwriting-the-files/m-p/733484#M32412</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a PHP code that generates a CSV file, and then I automatically upload this CSV file to my Dropbox.&lt;/P&gt;&lt;P&gt;The first time I run my code, it works and sends the file to Dropbox.&lt;/P&gt;&lt;P&gt;If I rerun the CSV export immediately, it won't send the file to Dropbox.&lt;/P&gt;&lt;P&gt;If I modify my data and rerun the CSV export, it sends the file to Dropbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume that when it doesn't send the file, it's because no data has been modified, so the file size remains the same, and it doesn't send it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want it to send the file to Dropbox even if the file seems identical. Here's the code for my upload using the kunalvarma05-dropbox-php-sdk API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function uploadFileToDropbox($localFilePath, $fileName) {&lt;BR /&gt;$dropbox = initializeDropbox();&lt;BR /&gt;$dropboxPath = DROPBOX_BASE_PATH . $fileName;&lt;BR /&gt;$dropboxFile = new DropboxFile($localFilePath);&lt;BR /&gt;&lt;BR /&gt;$options = [&lt;BR /&gt;'autorename' =&amp;gt; false,&lt;BR /&gt;'mode' =&amp;gt; 'overwrite'&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;return $dropbox-&amp;gt;upload($dropboxFile, $dropboxPath, $options);&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 02:46:03 GMT</pubDate>
    <dc:creator>Nicolas Lavertu</dc:creator>
    <dc:date>2023-11-30T02:46:03Z</dc:date>
    <item>
      <title>Always overwriting the files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Always-overwriting-the-files/m-p/733484#M32412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a PHP code that generates a CSV file, and then I automatically upload this CSV file to my Dropbox.&lt;/P&gt;&lt;P&gt;The first time I run my code, it works and sends the file to Dropbox.&lt;/P&gt;&lt;P&gt;If I rerun the CSV export immediately, it won't send the file to Dropbox.&lt;/P&gt;&lt;P&gt;If I modify my data and rerun the CSV export, it sends the file to Dropbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume that when it doesn't send the file, it's because no data has been modified, so the file size remains the same, and it doesn't send it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want it to send the file to Dropbox even if the file seems identical. Here's the code for my upload using the kunalvarma05-dropbox-php-sdk API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function uploadFileToDropbox($localFilePath, $fileName) {&lt;BR /&gt;$dropbox = initializeDropbox();&lt;BR /&gt;$dropboxPath = DROPBOX_BASE_PATH . $fileName;&lt;BR /&gt;$dropboxFile = new DropboxFile($localFilePath);&lt;BR /&gt;&lt;BR /&gt;$options = [&lt;BR /&gt;'autorename' =&amp;gt; false,&lt;BR /&gt;'mode' =&amp;gt; 'overwrite'&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;return $dropbox-&amp;gt;upload($dropboxFile, $dropboxPath, $options);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 02:46:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Always-overwriting-the-files/m-p/733484#M32412</guid>
      <dc:creator>Nicolas Lavertu</dc:creator>
      <dc:date>2023-11-30T02:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Always overwriting the files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Always-overwriting-the-files/m-p/733512#M32413</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1765370"&gt;@Nicolas Lavertu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The file always gets uploaded but if it's the same (i.e. same name, path, size, and content), it's ignored. That's it - nothing to change. In such case metadata remain the same.&lt;/P&gt;&lt;P&gt;Hope this clarifies matter.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 07:08:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Always-overwriting-the-files/m-p/733512#M32413</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-11-30T07:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Always overwriting the files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Always-overwriting-the-files/m-p/733566#M32418</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1765370"&gt;@Nicolas Lavertu&lt;/a&gt;&amp;nbsp;Здравко is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in addition to the "mode" and "autorename" parameters though, you can control the behavior using the "strict_conflict" parameter. Check out &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank"&gt;the /2/files/upload documentation&lt;/A&gt; for more information.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 14:19:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Always-overwriting-the-files/m-p/733566#M32418</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-11-30T14:19:52Z</dc:date>
    </item>
  </channel>
</rss>

