<?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 get shared Link of Uploaded Folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-shared-Link-of-Uploaded-Folder/m-p/244195#M13696</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can upload my files with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	public void uploadFileToDropbox(File inputFile, String path, String fileName) throws Exception{
		InputStream inputStream = new FileInputStream(inputFile);
		try {
		    FileMetadata uploadedFile = client.files().uploadBuilder("/"+path+"/"+fileName).uploadAndFinish(inputStream);
		    System.out.println("Uploaded to Dropbox: " + uploadedFile.getName());
		} finally {
		    inputStream.close();
		}
	}&lt;/PRE&gt;&lt;P&gt;How can I get the URL of the folder? I tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	public String getShareLink(String path) throws DbxException{
		SharedLinkMetadata slm = client.sharing().createSharedLinkWithSettings(path);
		return(slm.getUrl());
	}&lt;/PRE&gt;&lt;P&gt;But I always get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;java.lang.IllegalArgumentException: String 'path' does not match pattern&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 May 2019 09:18:55 GMT</pubDate>
    <dc:creator>jimb0p</dc:creator>
    <dc:date>2019-05-29T09:18:55Z</dc:date>
    <item>
      <title>get shared Link of Uploaded Folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-shared-Link-of-Uploaded-Folder/m-p/244195#M13696</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can upload my files with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	public void uploadFileToDropbox(File inputFile, String path, String fileName) throws Exception{
		InputStream inputStream = new FileInputStream(inputFile);
		try {
		    FileMetadata uploadedFile = client.files().uploadBuilder("/"+path+"/"+fileName).uploadAndFinish(inputStream);
		    System.out.println("Uploaded to Dropbox: " + uploadedFile.getName());
		} finally {
		    inputStream.close();
		}
	}&lt;/PRE&gt;&lt;P&gt;How can I get the URL of the folder? I tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	public String getShareLink(String path) throws DbxException{
		SharedLinkMetadata slm = client.sharing().createSharedLinkWithSettings(path);
		return(slm.getUrl());
	}&lt;/PRE&gt;&lt;P&gt;But I always get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;java.lang.IllegalArgumentException: String 'path' does not match pattern&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:18:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-shared-Link-of-Uploaded-Folder/m-p/244195#M13696</guid>
      <dc:creator>jimb0p</dc:creator>
      <dc:date>2019-05-29T09:18:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: get shared Link of Uploaded Folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-shared-Link-of-Uploaded-Folder/m-p/244201#M13698</link>
      <description>&lt;P&gt;Changed the URL Line like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SharedLinkMetadata slm = client.sharing().createSharedLinkWithSettings("/"+path);&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Sep 2017 10:31:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-shared-Link-of-Uploaded-Folder/m-p/244201#M13698</guid>
      <dc:creator>jimb0p</dc:creator>
      <dc:date>2017-09-29T10:31:10Z</dc:date>
    </item>
    <item>
      <title>Betreff: get shared Link of Uploaded Folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-shared-Link-of-Uploaded-Folder/m-p/244247#M13712</link>
      <description>I'm glad to hear you already sorted this out. That's correct, non-root file paths need a leading '/'.</description>
      <pubDate>Fri, 29 Sep 2017 14:36:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/get-shared-Link-of-Uploaded-Folder/m-p/244247#M13712</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-29T14:36:43Z</dc:date>
    </item>
  </channel>
</rss>

