<?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: Problem of uploading image to dropbox shared link using url in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477377#M1629</link>
    <description>&lt;P&gt;How are you checking that you're using an access token for the same account as the one that made the shared link? I just tried this functionality and it is working for me.&amp;nbsp;When using the same account, I get the path_lower value. You can use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#usersGetCurrentAccount__anchor" target="_blank"&gt;the&amp;nbsp;usersGetCurrentAccount method&lt;/A&gt; to check what account a particular access token is for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload__anchor" target="_self"&gt;the&amp;nbsp;filesUpload method&lt;/A&gt; is a valid way to upload over an existing file in the connected account. You don't need to get the path_lower value from&amp;nbsp;sharingGetSharedLinkMetadata in particular though. You can get the path from wherever you want, e.g., elsewhere on the API, such as from&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolder__anchor" target="_self"&gt;filesListFolder&lt;/A&gt;/&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolderContinue__anchor" target="_self"&gt;filesListFolderContinue&lt;/A&gt;, etc., or you can even retrieve it from some previous storage in your app, or just hard-code it if it's always the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, if something isn't working as expected,&amp;nbsp;please share more details so we can look into it. You can also &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket here&lt;/A&gt; if you'd prefer to share privately.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 16:27:24 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-12-08T16:27:24Z</dc:date>
    <item>
      <title>Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/476158#M1620</link>
      <description>&lt;P&gt;I am trying to upload the image to the dropbox shared link using the URL&amp;nbsp; but I did not get the path of this shared link. I'm using the below code to get the metadata of the shared folder link but I did not get a path_lower in response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dbx.sharingGetSharedLinkMetadata({url: req.body.reference})
    .then(function(response) {
        console.log(response);
        var pathname =  response.result.path_lower;
        dbx.filesUpload({path: "/"+pathname, contents: data})
            .then(function(response) {
            console.log(response);
            })
            .catch(function(error) {
                console.error(error);
            });
    
    })
    .catch(function(error) {
        console.error(error);
    });&lt;/PRE&gt;&lt;P&gt;I appreciate your help. Thank You.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 17:35:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/476158#M1620</guid>
      <dc:creator>JagsDew</dc:creator>
      <dc:date>2020-12-04T17:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/476178#M1621</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#SharingFileLinkMetadata" target="_self"&gt;SharingFileLinkMetadata&lt;/A&gt;.path_lower (as returned by&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingGetSharedLinkMetadata__anchor" target="_self"&gt;sharingGetSharedLinkMetadata&lt;/A&gt;) is "only be present only if the linked file is in the authenticated user's dropbox.". So, it sounds like the linked file doesn't exist in the account that you're connected to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case, you'd need to supply the path yourself. For instance, perhaps you would want to build one using the returned file name in &lt;A href="https://dropbox.github.io/dropbox-sdk-js/global.html#SharingFileLinkMetadata" target="_self"&gt;SharingFileLinkMetadata&lt;/A&gt;.name if you want it to have the same name as the linked file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 18:03:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/476178#M1621</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-04T18:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/476321#M1622</link>
      <description>&lt;P&gt;Thank You for your response. But the user account that I used is an authenticated user dropbox account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think should I be doing something else to get path_lower from the shared link url?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 06:52:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/476321#M1622</guid>
      <dc:creator>JagsDew</dc:creator>
      <dc:date>2020-12-05T06:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/476971#M1623</link>
      <description>&lt;P&gt;When you say "the user account that I used is an authenticated user dropbox account.", that doesn't necessarily&amp;nbsp;meet the requirement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to&amp;nbsp;receive the path_lower value, the account for the access token you're using to make the call needs to be the same account as the one that created the shared link.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 15:56:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/476971#M1623</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-07T15:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477158#M1627</link>
      <description>&lt;P&gt;As you told me, the&amp;nbsp;&lt;SPAN&gt;account for the access token which I am using to make the call is the same account as the one that created the shared link.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any other way to upload images to shared link programmatically?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 04:11:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477158#M1627</guid>
      <dc:creator>JagsDew</dc:creator>
      <dc:date>2020-12-08T04:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477377#M1629</link>
      <description>&lt;P&gt;How are you checking that you're using an access token for the same account as the one that made the shared link? I just tried this functionality and it is working for me.&amp;nbsp;When using the same account, I get the path_lower value. You can use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#usersGetCurrentAccount__anchor" target="_blank"&gt;the&amp;nbsp;usersGetCurrentAccount method&lt;/A&gt; to check what account a particular access token is for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload__anchor" target="_self"&gt;the&amp;nbsp;filesUpload method&lt;/A&gt; is a valid way to upload over an existing file in the connected account. You don't need to get the path_lower value from&amp;nbsp;sharingGetSharedLinkMetadata in particular though. You can get the path from wherever you want, e.g., elsewhere on the API, such as from&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolder__anchor" target="_self"&gt;filesListFolder&lt;/A&gt;/&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolderContinue__anchor" target="_self"&gt;filesListFolderContinue&lt;/A&gt;, etc., or you can even retrieve it from some previous storage in your app, or just hard-code it if it's always the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, if something isn't working as expected,&amp;nbsp;please share more details so we can look into it. You can also &lt;A href="https://www.dropbox.com/developers/contact" target="_self"&gt;open an API ticket here&lt;/A&gt; if you'd prefer to share privately.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 16:27:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477377#M1629</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-08T16:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477412#M1631</link>
      <description>&lt;P&gt;Thank You for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, I used&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#usersGetCurrentAccount__anchor" target="_blank" rel="nofollow noopener noreferrer"&gt;the&amp;nbsp;usersGetCurrentAccount method&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to check what account a particular access token is for and it is the same account that generated the shared link.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have to upload an image to the shared link. So I need the full path of that shared link folder. Thatswhy I am using sharingGetSharedLinkMetadata API because I only have input as shared link URL. Is there a way to get the folder path from the shared link URL?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Every time the shared link will change the path will also change. So it is not possible to hardcode the path. Also, there is no previous storage in that folder to get the path.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 18:49:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477412#M1631</guid>
      <dc:creator>JagsDew</dc:creator>
      <dc:date>2020-12-08T18:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477416#M1632</link>
      <description>&lt;P&gt;Yes, using&amp;nbsp;sharingGetSharedLinkMetadata is the right way to get the corresponding path just based on the shared link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not working properly for you, please share a sample so we can look into it. For instance, share the output of both&amp;nbsp;usersGetCurrentAccount and sharingGetSharedLinkMetadata, as well as the shared link itself.&amp;nbsp;&lt;SPAN&gt;You can&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/developers/contact" target="_self" rel="noopener noreferrer"&gt;open an API ticket here&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;if you'd prefer to share privately.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 18:55:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477416#M1632</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-08T18:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477706#M1636</link>
      <description>&lt;P&gt;If the shared folder is empty then Is there any other way to get the full folder path when you have only input as a URL of the shared folder link?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried &lt;SPAN&gt;sharingGetSharedLinkMetadata&amp;nbsp;&lt;/SPAN&gt;many times but it's not providing the path. So I am unable to upload images to that shared folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will open an API ticket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 13:56:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477706#M1636</guid>
      <dc:creator>JagsDew</dc:creator>
      <dc:date>2020-12-09T13:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477749#M1638</link>
      <description>&lt;P&gt;Even if the folder is empty, the folder itself would have a path, but again it would only be returned if the accounts match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We'll look into it and follow up with you on your ticket.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:08:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/477749#M1638</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-09T16:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/478454#M1643</link>
      <description>&lt;P&gt;Where and when I can see the response of my issue ticket no. #11717751.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to find any response in the ticket support section.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 04:08:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/478454#M1643</guid>
      <dc:creator>JagsDew</dc:creator>
      <dc:date>2020-12-11T04:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of uploading image to dropbox shared link using url</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/478688#M1645</link>
      <description>&lt;P&gt;We responded to that ticket on Wednesday. Please check the email&amp;nbsp;inbox for the email address on the account used to open that ticket for the response. If you don't see it, please check the spam folder too.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 14:58:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Problem-of-uploading-image-to-dropbox-shared-link-using-url/m-p/478688#M1645</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-12-11T14:58:32Z</dc:date>
    </item>
  </channel>
</rss>

