<?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 Best way to get a file's URL in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253376#M14623</link>
    <description>&lt;P&gt;There are photos in shared folder that I have access to.&amp;nbsp; I would like to get the URL of the photos (the JPEG/PNG) in that folder using the V2 NodeJS API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to enumerate the files in the folder using&amp;nbsp;filesListFolder().&amp;nbsp; How do I use the "id" or "name" to get the URL.&amp;nbsp; I would like to have a permanent URL instead of a temporary since I will be storing that value in my DB.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:17:13 GMT</pubDate>
    <dc:creator>quocvu</dc:creator>
    <dc:date>2019-05-29T09:17:13Z</dc:date>
    <item>
      <title>Best way to get a file's URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253376#M14623</link>
      <description>&lt;P&gt;There are photos in shared folder that I have access to.&amp;nbsp; I would like to get the URL of the photos (the JPEG/PNG) in that folder using the V2 NodeJS API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to enumerate the files in the folder using&amp;nbsp;filesListFolder().&amp;nbsp; How do I use the "id" or "name" to get the URL.&amp;nbsp; I would like to have a permanent URL instead of a temporary since I will be storing that value in my DB.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:17:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253376#M14623</guid>
      <dc:creator>quocvu</dc:creator>
      <dc:date>2019-05-29T09:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to get a file's URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253553#M14641</link>
      <description>You can use sharingCreateSharedLinkWithSettings to make a shared link for any file or folder:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingCreateSharedLinkWithSettings__anchor" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingCreateSharedLinkWithSettings__anchor&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or, if the shared link already exists, you can use sharingListSharedLinks to retrieve it:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingListSharedLinks__anchor" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingListSharedLinks__anchor&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(You may want to use SharingListSharedLinksArg.direct_only to restrict that call to the specific item only.)</description>
      <pubDate>Mon, 20 Nov 2017 19:02:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253553#M14641</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-20T19:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to get a file's URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253637#M14647</link>
      <description>As you mention, a shared link must exist for the sharing-list-shared-links to retrieve it.&lt;BR /&gt;&lt;BR /&gt;The issue I am facing is trying to get a shared link to generate for all files in a folder. I tried using the sharing-create-shared-link with settings API but it only seems to generate the shared link on a folder or individual file basis.&lt;BR /&gt;&lt;BR /&gt;How do I get every file in a folder to have a shared link, without having to go through each file one by one?&lt;BR /&gt;THANK YOU</description>
      <pubDate>Tue, 21 Nov 2017 08:43:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253637#M14647</guid>
      <dc:creator>pigelectric</dc:creator>
      <dc:date>2017-11-21T08:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to get a file's URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253690#M14650</link>
      <description>There isn't a way to create a shared link for every file in a folder without making a call for each one unfortunately. You'll need to list the files and call sharingCreateSharedLinkWithSettings on each one.</description>
      <pubDate>Tue, 21 Nov 2017 14:51:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253690#M14650</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-21T14:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to get a file's URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253784#M14657</link>
      <description>&lt;P&gt;Oh darn, I was thinking that might be the case. Is there a way to automate that ?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 00:14:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253784#M14657</guid>
      <dc:creator>pigelectric</dc:creator>
      <dc:date>2017-11-22T00:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to get a file's URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253882#M14661</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You can iterate through the file list (e.g., as returned by&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolder__anchor" target="_self"&gt;filesListFolder&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolderContinue__anchor" target="_self"&gt;filesListFolderContinue&lt;/A&gt;&lt;SPAN&gt;) and call&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingCreateSharedLinkWithSettings__anchor" target="_self"&gt;sharingCreateSharedLinkWithSettings&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;for each desired item.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 15:29:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/253882#M14661</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-22T15:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to get a file's URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/254114#M14672</link>
      <description>&lt;P&gt;Thanks Greg.&amp;nbsp; Can I do that even though I am not the owner of the shared folder?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you explain what is the use of the id (of files or folders)&amp;nbsp; returned&amp;nbsp;by filesListFolder().&amp;nbsp; I believe when the argument is specified as path, we are talking about this: &amp;lt;folder name&amp;gt;/&amp;lt;folder name&amp;gt;/&amp;lt;filename&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then what is the path if we are within a shared folder?&amp;nbsp; is that shared folder considered to be the root?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 05:19:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/254114#M14672</guid>
      <dc:creator>quocvu</dc:creator>
      <dc:date>2017-11-24T05:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to get a file's URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/254367#M14685</link>
      <description>Yes, you can use these methods for files/folders inside a shared folder even if you are not the owner of the shared folder. As long as you are a member of the shared folder, the contents will exist in your account for you to use, the same as you can see on the website.&lt;BR /&gt;&lt;BR /&gt;The 'id' for a file/folder is just another way to identify a particular item. Some API endpoints support supplying a file ID instead of a file path. The advantage to a file ID is that it doesn't change when a file is moved, for example.&lt;BR /&gt;&lt;BR /&gt;Whether or not a file is in a shared folder, the path is relative to the root that your app can see. That is the root of the Dropbox itself for apps with the "full Dropbox" permission, and the app folder for apps with the "app folder" permission. The paths for items are included in the Metadata objects for those items, e.g., as returned by filesListFolder.</description>
      <pubDate>Mon, 27 Nov 2017 15:43:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/254367#M14685</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-27T15:43:58Z</dc:date>
    </item>
  </channel>
</rss>

