<?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: Writing a file via API and make it always accessible publicly (like the old Public folder) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78445#M2342</link>
    <description>&lt;P&gt;Thanks, Gregory&lt;/P&gt;

&lt;P&gt;I would like to access the raw version of the file (which will be a JSON file). Is there a way to do that via API? I have noticed that the /media links expire after&amp;nbsp;4 hours...&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jul 2015 01:09:40 GMT</pubDate>
    <dc:creator>Giorgio C.3</dc:creator>
    <dc:date>2015-07-18T01:09:40Z</dc:date>
    <item>
      <title>Writing a file via API and make it always accessible publicly (like the old Public folder)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78443#M2340</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This is my scenario: I&amp;nbsp;need to write a file in users' Dropbox using the Core&amp;nbsp;API and make it accessible (sharable) publicly and for a longer period&amp;nbsp;(than 4 hours). I need somehow a similar behavior to the old Public folder, when the public link was available forever. I have noticed that if users share something via the "Share Dropbox link" they can set the expiration date or even remove it, but I cannot find a similar option via API.&lt;/P&gt;

&lt;P&gt;So far, I am able to make the authentication, etc. and write anywhere/anything in a user's dropbox via the Core APIs but I cannot figure out how to make a file (or a folder) always accessible. The media API seems the closest way, but it expires after 4 hours.&lt;/P&gt;

&lt;P&gt;Is there a way to do this?&lt;/P&gt;

&lt;P&gt;Thanks so much!&lt;/P&gt;

&lt;P&gt;Giorgio&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:41:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78443#M2340</guid>
      <dc:creator>Giorgio C.3</dc:creator>
      <dc:date>2019-05-29T09:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a file via API and make it always accessible publicly (like the old Public folder)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78444#M2341</link>
      <description>&lt;P&gt;Yes, you can use the /shares endpoint to get a shareable link to a file or folder:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/core/docs#shares" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/core/docs#shares&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 00:59:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78444#M2341</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-18T00:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a file via API and make it always accessible publicly (like the old Public folder)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78445#M2342</link>
      <description>&lt;P&gt;Thanks, Gregory&lt;/P&gt;

&lt;P&gt;I would like to access the raw version of the file (which will be a JSON file). Is there a way to do that via API? I have noticed that the /media links expire after&amp;nbsp;4 hours...&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 01:09:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78445#M2342</guid>
      <dc:creator>Giorgio C.3</dc:creator>
      <dc:date>2015-07-18T01:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a file via API and make it always accessible publicly (like the old Public folder)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78446#M2343</link>
      <description>&lt;P&gt;Yes, there's information here on modifying the links from /shares for different behaviors, e.g., to return raw content:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/help/201" rel="nofollow noreferrer"&gt;https://www.dropbox.com/help/201&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 01:11:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78446#M2343</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-18T01:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a file via API and make it always accessible publicly (like the old Public folder)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78447#M2344</link>
      <description>&lt;P&gt;That's great, thank you so much!&lt;/P&gt;

&lt;P&gt;The only downside of this is that the /shares link is not CORS enabled like the APIs, right? Having that &amp;amp;raw=1 option in the /shares endpoint&amp;nbsp;would be great...&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 01:30:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78447#M2344</guid>
      <dc:creator>Giorgio C.3</dc:creator>
      <dc:date>2015-07-18T01:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a file via API and make it always accessible publicly (like the old Public folder)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78448#M2345</link>
      <description>&lt;P&gt;That's correct, CORS isn't enabled on &lt;A href="http://www.dropbox.com" rel="nofollow noreferrer"&gt;www.dropbox.com&lt;/A&gt;. The parameters ( &lt;CODE&gt;dl&lt;/CODE&gt; or &lt;CODE&gt;raw&lt;/CODE&gt; ) are preferred, but if they don't suit your use case, one alternative is to change host from &lt;A href="http://www.dropbox.com" rel="nofollow noreferrer"&gt;www.dropbox.com&lt;/A&gt; to dl.dropboxusercontent.com, that is:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.dropbox.com/s/" rel="nofollow noreferrer"&gt;www.dropbox.com/s/&lt;/A&gt;...&lt;/P&gt;

&lt;P&gt;to:&lt;/P&gt;

&lt;P&gt;dl.dropboxusercontent.com/s/...&lt;/P&gt;

&lt;P&gt;CORS does work on the latter host.&amp;nbsp;That's not documented though, so I can't say it's officially supported.&lt;/P&gt;

&lt;P&gt;And thanks for the feedback. I'll pass this along as a request to put the raw option directly into the /shares endpoint.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 01:35:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78448#M2345</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-18T01:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Writing a file via API and make it always accessible publicly (like the old Public folder)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78449#M2346</link>
      <description>&lt;P&gt;Awesome!&lt;/P&gt;

&lt;P&gt;Thank you again for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 01:41:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Writing-a-file-via-API-and-make-it-always-accessible-publicly/m-p/78449#M2346</guid>
      <dc:creator>Giorgio C.3</dc:creator>
      <dc:date>2015-07-18T01:41:29Z</dc:date>
    </item>
  </channel>
</rss>

