<?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 Dropbox Chooser response linktype for folders in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-Chooser-response-linktype-for-folders/m-p/375183#M818</link>
    <description>&lt;P&gt;I am trying to get the path of the folder selected. This is how my response object looks like:&lt;/P&gt;&lt;PRE&gt;    linkType: "direct",  
    multiselect: false,  
    extensions: [],
    folderselect: true,  
    sizeLimit: 1024,&lt;/PRE&gt;&lt;P&gt;Now when I get a response path looks like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://www.dropbox.com/sh/bzqdza1ju95ewql5fw/AADE_uZdasdWh6N3ews4MvucNNnqZxlka?dl=0&lt;/PRE&gt;&lt;P&gt;I need to get the path like "home/test" so I can save it using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/list_folder \
    --header "Authorization: Bearer " \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"/Homework/math\",\"recursive\": false,\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false,\"include_mounted_folders\": true,\"include_non_downloadable_files\": true}"
PARAMETERS
{
    "path": "/Homework/math",
    "recursive": false,
    "include_media_info": false,
    "include_deleted": false,
    "include_has_explicit_shared_members": false,
   "include_mounted_folders": true,
    "include_non_downloadable_files": true
}&lt;/PRE&gt;&lt;P&gt;Any Idea how I can get the path(for folder location) from the Chooser?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 18:14:43 GMT</pubDate>
    <dc:creator>namiqismayil</dc:creator>
    <dc:date>2019-10-29T18:14:43Z</dc:date>
    <item>
      <title>Dropbox Chooser response linktype for folders</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-Chooser-response-linktype-for-folders/m-p/375183#M818</link>
      <description>&lt;P&gt;I am trying to get the path of the folder selected. This is how my response object looks like:&lt;/P&gt;&lt;PRE&gt;    linkType: "direct",  
    multiselect: false,  
    extensions: [],
    folderselect: true,  
    sizeLimit: 1024,&lt;/PRE&gt;&lt;P&gt;Now when I get a response path looks like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://www.dropbox.com/sh/bzqdza1ju95ewql5fw/AADE_uZdasdWh6N3ews4MvucNNnqZxlka?dl=0&lt;/PRE&gt;&lt;P&gt;I need to get the path like "home/test" so I can save it using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/files/list_folder \
    --header "Authorization: Bearer " \
    --header "Content-Type: application/json" \
    --data "{\"path\": \"/Homework/math\",\"recursive\": false,\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false,\"include_mounted_folders\": true,\"include_non_downloadable_files\": true}"
PARAMETERS
{
    "path": "/Homework/math",
    "recursive": false,
    "include_media_info": false,
    "include_deleted": false,
    "include_has_explicit_shared_members": false,
   "include_mounted_folders": true,
    "include_non_downloadable_files": true
}&lt;/PRE&gt;&lt;P&gt;Any Idea how I can get the path(for folder location) from the Chooser?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 18:14:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-Chooser-response-linktype-for-folders/m-p/375183#M818</guid>
      <dc:creator>namiqismayil</dc:creator>
      <dc:date>2019-10-29T18:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Chooser response linktype for folders</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-Chooser-response-linktype-for-folders/m-p/375186#M819</link>
      <description>&lt;P&gt;The&amp;nbsp;Dropbox Chooser doesn't return the path like this, but it does return the "id". You can use the id value in the "path" parameter of&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_self"&gt;/2/files/list_folder&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you do want the path for some reason though, you can call&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata" target="_self"&gt;/2/sharing/get_shared_link_metadata&lt;/A&gt; first with the "link" value returned by the Chooser as the "url" parameter.&lt;/P&gt;
&lt;P&gt;Either way, note this will only work if you are using an access token for the same account as the one that was logged in to the Chooser.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 18:20:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-Chooser-response-linktype-for-folders/m-p/375186#M819</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-10-29T18:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Chooser response linktype for folders</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-Chooser-response-linktype-for-folders/m-p/375452#M822</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata" target="_self" rel="noopener noreferrer"&gt;/2/sharing/get_shared_link_metadata&lt;/A&gt;&amp;nbsp;does work for the shared folders.&lt;/P&gt;&lt;P&gt;Now we have a problem with not shared ones. For not shared ones, we get name of the folder back but not the whole path. &lt;EM&gt;&lt;STRONG&gt;name&lt;/STRONG&gt; &lt;/EM&gt;is valid but &lt;EM&gt;&lt;STRONG&gt;pathlower&lt;/STRONG&gt; &lt;/EM&gt;is null. Can we get a metadata for not shared folders? We tried below 2, but it did not work.&lt;/P&gt;&lt;PRE&gt;https://api.dropboxapi.com/2/sharing/get_folder_metadata&lt;/PRE&gt;&lt;PRE&gt;https://api.dropboxapi.com/2/sharing/get_file_metadata&lt;/PRE&gt;&lt;P&gt;Above to gives &lt;EM&gt;access error. &lt;/EM&gt;As I type this question, I noticed it might me because of "sharing", so I tried&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata" target="_self"&gt;/http/documentation#files-get_metadata&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Oddly though, this gives back error for selected file/folder&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/11950i2B49CEE83A1514BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 18:54:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-Chooser-response-linktype-for-folders/m-p/375452#M822</guid>
      <dc:creator>namiqismayil</dc:creator>
      <dc:date>2019-10-30T18:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox Chooser response linktype for folders</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-Chooser-response-linktype-for-folders/m-p/375463#M823</link>
      <description>&lt;P&gt;When you use the Chooser with the&amp;nbsp;linkType: "preview" option, you'll always get back a shared link back in the "link" field, which can be used with&amp;nbsp;/2/sharing/get_shared_link_metadata, whether or not the folder was previously shared.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this doesn't work with&amp;nbsp;the&amp;nbsp;linkType: "direct" option, since that doesn't result in actual shared links. I notice that the options you indicated originally do have&amp;nbsp;linkType: "direct", but I expect that was just a typo, since it's not possible to use&amp;nbsp;the&amp;nbsp;linkType: "preview" option with the folderselect: true option anyway.&lt;/P&gt;
&lt;P&gt;Anyway, the&amp;nbsp;/2/sharing/get_folder_metadata and&amp;nbsp;/2/sharing/get_file_metadata endpoints are meant for different kinds of sharing (shared folders and shared files, respectively, not shared links), so they won't work with the shared links returned by the Chooser.&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;/2/sharing/get_shared_link_metadata endpoint&amp;nbsp;will only return the path_lower value if you are using an access token for the same account as the one that was used to select the folder in the Chooser. It sounds like that wasn't the case in some of your attempts, so the field wasn't populated.&lt;/P&gt;
&lt;P&gt;Likewise, if you specify the file path or ID for a file from a different account when calling /2/files/get_metadata, it won't be found.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 20:59:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-Chooser-response-linktype-for-folders/m-p/375463#M823</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-10-30T20:59:29Z</dc:date>
    </item>
  </channel>
</rss>

