<?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: 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/248263#M16850</link>
    <description>&lt;P&gt;Hi Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I create a shared link to a folder, that does not mean that all of it's contents now have shared links. Please confirm my understanding that it's a one to one thing.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, some nuances with regard to shared links.&amp;nbsp; Let's say on Monday I programattically create shared links for all files and folders in our Dropbox.&amp;nbsp; Then someone adds new files and folders.&amp;nbsp; Can I run the same program that basically gets each item and assigns a shared link to it, or do I need to differentiate between those items who do not have a shared link and create a shared link.&amp;nbsp; Will it mess anything up if I just run my shared link utility on our whole dropbox each time?&amp;nbsp; I want to make sure I don't create issues on the back end for anyone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally the first parameter for CreateSharedLinkWithSettingsAsync is the path of the item.&amp;nbsp; So the path to an example file is "C:\Users\malter.JOYOUSLIVING\Dropbox\FoldernameLevel1\FolderNameLevel1\FileName.pdf".&amp;nbsp; Is this what I pass, or do I pass the stuff just after Dropbox, or do I include Dropbox.&amp;nbsp; I don't see any example code, so I'm having to wing this.&amp;nbsp; Are there code examples?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2017 17:10:20 GMT</pubDate>
    <dc:creator>mikemalter</dc:creator>
    <dc:date>2017-10-20T17:10:20Z</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/205652#M16842</link>
      <description>&lt;P&gt;I am making an iOS app that displays all of the images from a selected folder. To make caching the images easier and more efficient I'm using the SDWebImage Library. SDWebImage requires a URL and I'm currently using the &lt;EM&gt;&lt;STRONG&gt;getTemporaryLink&lt;/STRONG&gt;&lt;/EM&gt; function to get a link for each image in the folder.&amp;nbsp;Is there a better way to get a URL? I'm concerned that the links expiring will cause issues.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:26:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/205652#M16842</guid>
      <dc:creator>anonymous</dc:creator>
      <dc:date>2019-05-29T09:26:07Z</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/205666#M16843</link>
      <description>That is the right way to get a direct link to a file using the API. &lt;BR /&gt;&lt;BR /&gt;I'll be happy to pass along as feedback or feature requests though. What specifically would be more useful? Thanks in advance!</description>
      <pubDate>Tue, 07 Feb 2017 18:50:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/205666#M16843</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-07T18:50: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/208294#M16844</link>
      <description>&lt;P&gt;I've been trying to find a way to share an image url&amp;nbsp;from dropbox so that I can use it in my newsletters. Something like what imgur&amp;nbsp;does.&lt;/P&gt;&lt;P&gt;I tested it by copying a shared link from dropbox but it didn't work. Is there a way to share image url-s from dropbox. Since Dropbox hosts our images anyway wouldn't be so difficult I thought.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 12:01:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/208294#M16844</guid>
      <dc:creator>SianZeng</dc:creator>
      <dc:date>2017-02-24T12:01:48Z</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/208358#M16845</link>
      <description>&lt;P&gt;SianZeng, can you elaborate on what didn't work? It sounds like you may want to use the options documented here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;https://help.dropbox.com/desktop-web/force-download&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 13:32:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/208358#M16845</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-08-10T13:32: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/247753#M16846</link>
      <description>&lt;P&gt;I may not be thinking about this correctly, so I'm open to alternatives.&amp;nbsp; I need to generate a document that lists all of the files and folders off of a selected Dropbox folder.&amp;nbsp; This I can do now with no issues.&amp;nbsp; One additional requirement is that the list be hyperlinked so if someone clicks on a link, that document will open.&amp;nbsp; I could have file hyperlinks for our desktop users, but what about mobile phone users?&amp;nbsp; I'm thinking that I'll need URL's for that.&amp;nbsp; So I need to know how to get URL's for selected files.&amp;nbsp; However, one of the messages above talks about links expiring.&amp;nbsp; Is there a way to get a permanant URL that can be stored in a document?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 17:40:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/247753#M16846</guid>
      <dc:creator>mikemalter</dc:creator>
      <dc:date>2017-10-18T17:40:42Z</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/247765#M16847</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/514664"&gt;@mikemalter&lt;/a&gt;&amp;nbsp;It sounds like&amp;nbsp;Dropbox shared links might be a good solution for your use case. They don't expire (though they can be manually revoked). You can&amp;nbsp;create them programmatically using the API via &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;/2/sharing/create_shared_link_with_settings&lt;/A&gt;&amp;nbsp;(or a corresponding method if you're using an official SDK).&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:49:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/247765#M16847</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-10-18T18:49:05Z</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/247930#M16848</link>
      <description>&lt;P&gt;@Greg K., thanks for your answer.&amp;nbsp; Of course I have a few more questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If our group's content manager set up shared folders, is that the same thing as shared files?&amp;nbsp; Do we have to create a shared link to every file?&lt;/LI&gt;&lt;LI&gt;I looked at the Json code to create a shared link and I'm wondering can I do the same thing in C#?&amp;nbsp; I have not coded anything in Json at this point.&lt;/LI&gt;&lt;LI&gt;I noticed that there did not seem to be anyway to get a copy of the link for a file.&amp;nbsp; Is there a way to query dropbox and get the shared links of all files that exist?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks for your help.&amp;nbsp; I am so new to this that my questions might not make sense, but hopefully you'll see what I'm up to and can answer accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 15:12:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/247930#M16848</guid>
      <dc:creator>mikemalter</dc:creator>
      <dc:date>2017-10-19T15:12:41Z</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/248006#M16849</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/514664"&gt;@mikemalter&lt;/a&gt;&amp;nbsp;No problem:&lt;/P&gt;
&lt;P&gt;1. No, shared folders are not the same as shared links. There's a help center article that covers these two different kinds of sharing here:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.dropbox.com/files-folders/share/share-file-or-folder" target="_self"&gt;https://help.dropbox.com/files-folders/share-file-or-folder&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. Yes, you can call the API from essentially any platform where you can&amp;nbsp;make&amp;nbsp;arbitrary HTTPS calls.&amp;nbsp; If you're using C#, we&amp;nbsp;recommend using &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_self"&gt;the official&amp;nbsp;Dropbox API v2 .NET SDK&lt;/A&gt;, if you can. The SDK will do most of the work for you. For example, it has &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_CreateSharedLinkWithSettingsAsync_1.htm" target="_self"&gt;a&amp;nbsp;CreateSharedLinkWithSettingsAsync method&lt;/A&gt; for&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self" rel="noopener noreferrer"&gt;/2/sharing/create_shared_link_with_settings&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;3. Yes, you can retrieve existing shared links using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links" target="_self"&gt;/2/sharing/list_shared_links&lt;/A&gt;&amp;nbsp;(which is &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_ListSharedLinksAsync_1.htm" target="_self"&gt;ListSharedLinksAsync&lt;/A&gt;&amp;nbsp;in the .NET SDK).&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 13:31:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/248006#M16849</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-08-10T13:31:39Z</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/248263#M16850</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I create a shared link to a folder, that does not mean that all of it's contents now have shared links. Please confirm my understanding that it's a one to one thing.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, some nuances with regard to shared links.&amp;nbsp; Let's say on Monday I programattically create shared links for all files and folders in our Dropbox.&amp;nbsp; Then someone adds new files and folders.&amp;nbsp; Can I run the same program that basically gets each item and assigns a shared link to it, or do I need to differentiate between those items who do not have a shared link and create a shared link.&amp;nbsp; Will it mess anything up if I just run my shared link utility on our whole dropbox each time?&amp;nbsp; I want to make sure I don't create issues on the back end for anyone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally the first parameter for CreateSharedLinkWithSettingsAsync is the path of the item.&amp;nbsp; So the path to an example file is "C:\Users\malter.JOYOUSLIVING\Dropbox\FoldernameLevel1\FolderNameLevel1\FileName.pdf".&amp;nbsp; Is this what I pass, or do I pass the stuff just after Dropbox, or do I include Dropbox.&amp;nbsp; I don't see any example code, so I'm having to wing this.&amp;nbsp; Are there code examples?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 17:10:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/248263#M16850</guid>
      <dc:creator>mikemalter</dc:creator>
      <dc:date>2017-10-20T17:10:20Z</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/248284#M16851</link>
      <description>&lt;P&gt;If you create a shared link to a folder, that link is specifically for the folder. However, that link does also enable access to the contents of that folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you attempt to create a shared link for a file or folder that already has a shared link, the call will fail with an error. You can catch that error though. I illustrated that as well as the path question here in the issue you opened for the .NET SDK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/issues/64" target="_self"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/issues/64&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 18:20:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/248284#M16851</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-10-20T18:20:59Z</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/248333#M16852</link>
      <description>&lt;P&gt;Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is is possible you could post a snippet of C# code that shows how to call an async method from another class?&amp;nbsp; &amp;nbsp;I want to have a class called DropboxManager where I can put all of the Dropbox code in and then call those methods.&amp;nbsp; But I can't figure out how to pass parameters without another level of indirection.&amp;nbsp; Here are some code snippets to help you understand.&amp;nbsp; This is in the Form_Load method of my Windows Form application&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;this.dbx = DropboxManager.GetUserToken(this.DropboxDevelopmentAccessToken);

Task&amp;lt;FullAccount&amp;gt; task = Task.Run(GetCurrentAccount);
task.Wait();
this.full = task.Result;

this.lblDropboxUserName.Text = full.Name.DisplayName;
this.lblDropboxEmailAddress.Text = full.Email;

Task&amp;lt;List&amp;lt;string&amp;gt;&amp;gt; task1 = Task.Run(ListFolders);
task1.Wait();
int i = task1.Result.Count;&lt;/PRE&gt;
&lt;P&gt;Here are the functions that are another level of indirection and in the same class as the Form_Load method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;async Task&amp;lt;List&amp;lt;string&amp;gt;&amp;gt; ListFolders()
{
	DropboxManager dm = new DropboxManager();
	List&amp;lt;string&amp;gt; FolderList = await dm.ListFolders(dbx);

	return FolderList;
}

async Task&amp;lt;FullAccount&amp;gt; GetCurrentAccount()
{
	try
	{
		DropboxManager dm = new DropboxManager();
		return await dm.GetCurrentAccount(dbx);
	}
	catch (Exception e)
	{
		throw e;
	}
}&lt;/PRE&gt;
&lt;P&gt;Here are the methods that are called in my DropboxManager class:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;public async Task&amp;lt;List&amp;lt;string&amp;gt;&amp;gt; ListFolders(DropboxClient dbx)
{
	try
	{
		List&amp;lt;string&amp;gt; FolderList = new List&amp;lt;string&amp;gt;();
		var list = await dbx.Files.ListFolderAsync(string.Empty);

		foreach (var item in list.Entries.Where(i =&amp;gt; i.IsFolder))
		{
			FolderList.Add(item.Name);
		}

		return FolderList;
	}
	catch (Exception ex)
	{
		throw ex;
	}
}

public static DropboxClient GetUserToken(string oauth2AccessToken)
{
	try
	{
		DropboxClient dbx = new DropboxClient(oauth2AccessToken);
		return dbx;
	}
	catch (Exception e)
	{
		throw e;
	}
}

public async Task&amp;lt;FullAccount&amp;gt; GetCurrentAccount(DropboxClient dbx)
{
	try
	{
		return await dbx.Users.GetCurrentAccountAsync();
	}
	catch (Exception e)
	{
		throw e;
	}
}&lt;/PRE&gt;
&lt;P&gt;So you can see that the only way I can pass parameters is by executing a Run() on an async function that calls another async function.&amp;nbsp; I can't figure out how to pass parameters from that first level.&amp;nbsp; Is that even possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 21:44:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/248333#M16852</guid>
      <dc:creator>mikemalter</dc:creator>
      <dc:date>2017-10-20T21:44:32Z</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/248464#M16853</link>
      <description>Hi Mike, unfortunately this question sounds more like a general C# question about class and method structure and usage, which I'm afraid I can't offer help with, as it's out of scope for Dropbox API support and outside my area of expertise. Apologies I can't be of more help in that regard!</description>
      <pubDate>Sat, 21 Oct 2017 14:18:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/248464#M16853</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-10-21T14:18: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/249797#M16854</link>
      <description>&lt;P&gt;Greg,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No issues.&amp;nbsp; I eventually got it worked out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having an error thrown everytime I call&amp;nbsp;CreateSharedLinkWithSettingsAsync.&amp;nbsp; The message says:&amp;nbsp;{"Value should match pattern '\\A(?:(/(.|[\\r\\n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?))\\z'\r\nParameter name: path"} and the PathLower value is:&amp;nbsp;"\\NW Region Info Table Documents\\0 Special Documents please read first file in this folder\\DropboxForSeva.docx".&amp;nbsp; I parsed out my local drive and folders and trimmed everything to the right of \\Dropbox.&amp;nbsp; What am I missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 17:30:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/249797#M16854</guid>
      <dc:creator>mikemalter</dc:creator>
      <dc:date>2017-10-27T17:30:53Z</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/249807#M16855</link>
      <description>The error message is indicating that that's not a valid path value. The Dropbox path format doesn't necessarily match local filesystem path formats. For example, in this case, the path should be like  "/NW Region Info Table Documents/0 Special Documents please read first file in this folder/DropboxForSeva.docx".&lt;BR /&gt;&lt;BR /&gt;In general, you should just get the PathLower value from the Metadata objects returned by other API calls, such as listFolder.</description>
      <pubDate>Fri, 27 Oct 2017 18:20:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/249807#M16855</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-10-27T18:20:04Z</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/249958#M16856</link>
      <description>&lt;P&gt;Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to synch a desktop application UI with Dropbox and I started by getting a third party control that is a tree folder control.&amp;nbsp; How sure are you that Dropbox's storage is not mirrored on my machine?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Do you have a code sample for listFolder if all I have is a path from my computer?&amp;nbsp; Do I have enough information on my end to get metadata from Dropbox for a particular item?&lt;/LI&gt;
&lt;LI&gt;Do you have a code sample for getting file metadata?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2017 17:32:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/249958#M16856</guid>
      <dc:creator>mikemalter</dc:creator>
      <dc:date>2017-10-28T17:32:41Z</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/250204#M16857</link>
      <description>&lt;P&gt;If you use the official Dropbox desktop client, it will sync the contents of your Dropbox account to your local filesystem. Note that your local filesystem doesn't use the same path format as the remote Dropbox API though. For example, Dropbox API paths uses '/' as a separator, and not '\'.&lt;BR /&gt;&lt;BR /&gt;1. The Dropbox API isn't really meant for use based on file paths originating from your local filesystem like this. It provides the entire file listing for your from the API itself. E.g., using listFolder as shown here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L267" target="_blank" rel="noopener"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L267&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(If you need to list the root Dropbox folder, using the empty string "" as the path.)&lt;BR /&gt;&lt;BR /&gt;You can technically convert a local filesystem path, though I don't have sample code for that. For instance though, you can find the local Dropbox folder using this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.dropbox.com/desktop-web/locate-dropbox-folder" target="_self"&gt;https://help.dropbox.com/desktop-web/locate-dropbox-folder&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Then, you can strip off the local folder root, and convert the path as necessary. (E.g., from '\" separators to "/".)&lt;BR /&gt;&lt;BR /&gt;2. The listFolder method as above will return metadata, but you can also retrieve individual file metadata using GetMetadata as shown here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Dropbox.Api.Tests/DropboxApiTests.cs#L91" target="_blank" rel="noopener"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Dropbox.Api.Tests/DropboxApiTests.cs#L91&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 02:14:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/250204#M16857</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-03-23T02:14:08Z</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/265039#M16858</link>
      <description>&lt;P&gt;I have exactly the same question, but I'm writing native iOS application in ObjC.&lt;/P&gt;&lt;P&gt;I searched, but can't find a way to get the temporary link for a file. I&amp;nbsp;found mysterious `DBFILESGetTemporaryLink` and `DBFILESGetTemporaryLinkArg`, but I don't know how to use them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need an external URL for a file in Dropbox — don't want to download it to a temporary location or data in memory.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 22:23:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/265039#M16858</guid>
      <dc:creator>Pash237</dc:creator>
      <dc:date>2018-02-14T22:23:55Z</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/265040#M16859</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/618165"&gt;@Pash237&lt;/a&gt;&amp;nbsp;In the&amp;nbsp;Dropbox API v2 Objective-C SDK, you would use the&amp;nbsp;DBFILESUserAuthRoutes -getTemporaryLink: method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)getTemporaryLink" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)getTemporaryLink&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's an RPC-style method, so it would be used the same way as the createFolder example here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c#rpc-style-request" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-obj-c#rpc-style-request&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I.e., `[[client.filesRoutes&amp;nbsp;getTemporaryLink...`)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 22:46:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/265040#M16859</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-02-14T22:46:01Z</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/265045#M16860</link>
      <description>&lt;P&gt;Thanks, it works!&lt;/P&gt;&lt;PRE&gt;[[client.&lt;SPAN&gt;filesRoutes &lt;/SPAN&gt;&lt;SPAN&gt;getTemporaryLink:&lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;]&lt;BR /&gt;   &lt;SPAN&gt;setResponseBlock:&lt;/SPAN&gt;^(&lt;SPAN&gt;DBFILESGetTemporaryLinkResult &lt;/SPAN&gt;*result, &lt;SPAN&gt;DBFILESGetTemporaryLinkError &lt;/SPAN&gt;*routeError, &lt;SPAN&gt;DBRequestError &lt;/SPAN&gt;*networkError) {&lt;BR /&gt;      &lt;SPAN&gt;if &lt;/SPAN&gt;(result) {&lt;BR /&gt;         NSLog(&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;"Got URL for Dropbox file: &lt;/SPAN&gt;&lt;SPAN&gt;%@&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;, result.&lt;SPAN&gt;link&lt;/SPAN&gt;);&lt;BR /&gt;      }&lt;BR /&gt;   }];&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 23:25:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/265045#M16860</guid>
      <dc:creator>Pash237</dc:creator>
      <dc:date>2018-02-14T23:25:04Z</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/265264#M16861</link>
      <description>&lt;P&gt;Can you please share the function that you have tried as I have same requirement and if you shared it would be helpful for me.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 06:15:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Best-way-to-get-a-file-s-URL/m-p/265264#M16861</guid>
      <dc:creator>rahlpanchal</dc:creator>
      <dc:date>2018-02-16T06:15:23Z</dc:date>
    </item>
  </channel>
</rss>

