<?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 Upload files to a specific folder using javascript in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408392#M1103</link>
    <description>&lt;P&gt;I want to upload my files to a specific folder in dropbox, I am using the filesUpload function to upload files. I want that the folder gets created 1st and then the files are stored in that folder.&amp;nbsp; Below is my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="opencart-setup.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/14781i582F7997A5D9EB94/image-size/large?v=v2&amp;amp;px=999" role="button" title="opencart-setup.png" alt="opencart-setup.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 17:47:51 GMT</pubDate>
    <dc:creator>h_vohra</dc:creator>
    <dc:date>2020-04-09T17:47:51Z</dc:date>
    <item>
      <title>Upload files to a specific folder using javascript</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408392#M1103</link>
      <description>&lt;P&gt;I want to upload my files to a specific folder in dropbox, I am using the filesUpload function to upload files. I want that the folder gets created 1st and then the files are stored in that folder.&amp;nbsp; Below is my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="opencart-setup.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/14781i582F7997A5D9EB94/image-size/large?v=v2&amp;amp;px=999" role="button" title="opencart-setup.png" alt="opencart-setup.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 17:47:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408392#M1103</guid>
      <dc:creator>h_vohra</dc:creator>
      <dc:date>2020-04-09T17:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Upload files to a specific folder using javascript</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408400#M1104</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1284710"&gt;@h_vohra&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm just curious, Is there any problem outside fact that you put your file on root level, not in just created folder? You don't report any actual issue!&lt;/P&gt;&lt;P&gt;One advice: when you refer to particular place (folder), it's better practice avoid path in text form, use id instead. Just advice, nothing more (id is more stable way).&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 12:51:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408400#M1104</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-04-09T12:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Upload files to a specific folder using javascript</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408403#M1105</link>
      <description>&lt;P&gt;Different users will upload files from the form, so I need it to go on different folders to distinguish properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me how to get the ID, and add it in the path , I tried adding the folder name in path, but it gave error&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 12:59:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408403#M1105</guid>
      <dc:creator>h_vohra</dc:creator>
      <dc:date>2020-04-09T12:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Upload files to a specific folder using javascript</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408409#M1106</link>
      <description>&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@BEEAA17610EBE252DA0E57250B296A61/images/emoticons/1f642.png" alt=":slight_smile:" title=":slight_smile:" /&gt; If you aren't sure what my advice mean, better keep your way of coding for now.&lt;/P&gt;&lt;P&gt;Would be enough to concatenate file name to the folder path. Transform everything in your code which seems:&lt;/P&gt;&lt;PRE&gt;dbx.filesUpload({path: '/' + fileName, contents: file})&lt;/PRE&gt;&lt;P&gt;To something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dbx.filesUpload({path: '/' + folderName + '/' + fileName, contents: file})&lt;/PRE&gt;&lt;P&gt;Seems you just forgot it. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 13:11:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408409#M1106</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-04-09T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Upload files to a specific folder using javascript</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408411#M1107</link>
      <description>&lt;P&gt;Thanks for the solution, I am new to working with Dropbox API&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 13:14:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/408411#M1107</guid>
      <dc:creator>h_vohra</dc:creator>
      <dc:date>2020-04-09T13:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Upload files to a specific folder using javascript</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/409161#M1110</link>
      <description>Yes</description>
      <pubDate>Sun, 12 Apr 2020 05:39:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Upload-files-to-a-specific-folder-using-javascript/m-p/409161#M1110</guid>
      <dc:creator>Peterdc</dc:creator>
      <dc:date>2020-04-12T05:39:30Z</dc:date>
    </item>
  </channel>
</rss>

