<?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: Listing files in a folder, and make download links for all files? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/511925#M25193</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1419446"&gt;@James_T&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Won't looping through every file and folder and make a ton of share links be very slow?&lt;/P&gt;...&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;&amp;nbsp;wrote:&lt;BR /&gt;... Existing links could be enumerated with &lt;A title="List shared links of this user." href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links" target="_blank" rel="noopener noreferrer"&gt;sharing/list_shared_links&lt;/A&gt;. ...&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you take care every file you want to show to be associated in advance with a shared link, listing process is just a single API call. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Even more, you can filter the results "on fly" and filter any unwanted entry with a shared link. Is this so slow? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Probably it depends on your data structure...&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 21:14:30 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2021-04-07T21:14:30Z</dc:date>
    <item>
      <title>Listing files in a folder, and make download links for all files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/509506#M25142</link>
      <description>&lt;P&gt;I have a private Dropbox.&lt;/P&gt;
&lt;P&gt;I have a PHP-driven webpage where i want to list clickable links to some files in a specific folder in my dropbox.&lt;BR /&gt;&lt;BR /&gt;It's simple to list the files on my web page, I just use "files/list_folder/" to get an array of the files in the wanted folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But how can I get URLs to download the files, so I can make my list of files clickable?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 06:03:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/509506#M25142</guid>
      <dc:creator>James_T</dc:creator>
      <dc:date>2021-04-01T06:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files in a folder, and make download links for all files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/509519#M25143</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1419446"&gt;@James_T&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Just use &lt;A title="Create a shared link with custom settings." href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_blank" rel="noopener"&gt;sharing/create_shared_link_with_settings&lt;/A&gt;. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Existing links could be enumerated with &lt;A title="List shared links of this user." href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links" target="_blank" rel="noopener"&gt;sharing/list_shared_links&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 00:23:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/509519#M25143</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2021-04-01T00:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files in a folder, and make download links for all files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/510175#M25152</link>
      <description>&lt;P&gt;You need to loop that array and create links for each file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;/sharing/create_link_with_settings&lt;/A&gt; endpoint.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, we provide an embedded component to display the contents of a folder directly in a web page:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.tech/developers/now-available--dropbox-embedder" target="_blank"&gt;https://dropbox.tech/developers/now-available--dropbox-embedder&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Maybe that will make your life easier.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 22:50:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/510175#M25152</guid>
      <dc:creator>macribas</dc:creator>
      <dc:date>2021-04-03T22:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files in a folder, and make download links for all files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/511907#M25190</link>
      <description>&lt;P&gt;Won't looping through every file and folder and make a ton of share links be very slow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The embedding solution seems more sensible, but if I understand correctly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The root folder must have a share link created first&lt;/P&gt;&lt;P&gt;2. I have no control over which files and folders are displayed (I can't choose to hide a specific subfolder, or a specific file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 20:27:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/511907#M25190</guid>
      <dc:creator>James_T</dc:creator>
      <dc:date>2021-04-07T20:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files in a folder, and make download links for all files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/511911#M25192</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1419446"&gt;@James_T&lt;/a&gt; Yes, /2/sharing/create_shared_link_with_settings requires one call per item, so if there's a significant number to process, that would take a significant amount of time. That being the case, you could also consider only creating the shared link on demand, when the user clicks on a specific file. That is, the listed on your file on your page would link to a route on your server, which when accessed, would make the Dropbox API call and then redirect the user to the returned link. (Likewise, &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_self"&gt;/2/files/get_temporary_link&lt;/A&gt; would also work here, if you just need a temporary direct download link instead of a shared link.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, if you want to have the user's browser download the file directly, you could use /2/files/download on your server when the user clicks on a particular file. That would require passing the file data through your server each time though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, your understanding of the Embedder is correct. It would take a single shared link for the parent folder, and would then list everything in that linked parent folder.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 20:44:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/511911#M25192</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-04-07T20:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files in a folder, and make download links for all files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/511925#M25193</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1419446"&gt;@James_T&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Won't looping through every file and folder and make a ton of share links be very slow?&lt;/P&gt;...&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;&amp;nbsp;wrote:&lt;BR /&gt;... Existing links could be enumerated with &lt;A title="List shared links of this user." href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links" target="_blank" rel="noopener noreferrer"&gt;sharing/list_shared_links&lt;/A&gt;. ...&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you take care every file you want to show to be associated in advance with a shared link, listing process is just a single API call. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Even more, you can filter the results "on fly" and filter any unwanted entry with a shared link. Is this so slow? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Probably it depends on your data structure...&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 21:14:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/511925#M25193</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2021-04-07T21:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Listing files in a folder, and make download links for all files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/512155#M25200</link>
      <description>&lt;P&gt;Thanks for the replies!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I will go for the Embedder route, even though it has some drawbacks in my case. It really is a shame that the Embedder isn't more customizable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our company, we create a root folder for all new projects, with a bunch of subfolders we work on from a PC. On our internal website we want our employees to be able to access the content of only certain of those folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problems with the embedder is:&lt;BR /&gt;1. The folder needs a share link. &lt;STRONG&gt;Workaround&lt;/STRONG&gt;: When creating the project folders, make a share link and save to DB.&lt;/P&gt;&lt;P&gt;2. Sharing the folder gives access to all folders. &lt;STRONG&gt;Workaround:&amp;nbsp;&lt;/STRONG&gt;Create a subfolder called "web" and move the folders employees needs access to there, and share that one instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second workaround is the biggest problem for us, since that means an extra click into the "web" folder every time we work on our folders from a PC - which we do a lot (for those who don't know, it's also not very logic why some folders are not in the root, while others are)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All in all, I think the Embedder route is a better option than spending a bunch of time recreating what is basically a custom version of the embedder, which will never be as nice (previews, icons etc).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 18:52:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-files-in-a-folder-and-make-download-links-for-all-files/m-p/512155#M25200</guid>
      <dc:creator>James_T</dc:creator>
      <dc:date>2021-04-08T18:52:36Z</dc:date>
    </item>
  </channel>
</rss>

