<?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: Chooser get file names on upload in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Chooser-get-file-names-on-upload/m-p/161707#M5611</link>
    <description>&lt;P&gt;Do you see any error in the JavaScript console?&lt;/P&gt;
&lt;P&gt;If this is exactly your code, it looks like you're using the options variable before you actually assign it a value. I would expect you to see an error in the browser console.&lt;/P&gt;
&lt;P&gt;Try putting the "var options = ..." line above the call to Dropbox.createChooseButton.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2015 22:11:10 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2015-10-12T22:11:10Z</dc:date>
    <item>
      <title>Chooser get file names on upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Chooser-get-file-names-on-upload/m-p/161706#M5610</link>
      <description>&lt;P&gt;&amp;nbsp;Hat to say it but for me the DropBox API docs are not very clear at all (OK that also goes for other API's as well e.g. MrG's Drive) but hey ho . &amp;nbsp;My need is actually simple - well it should be but based on the examples - ummm they don't work ....&lt;/P&gt;
&lt;P&gt;I am using 'Chooser' because it's nice and simple for my 'users' but can I get any 'responce' back - no. &amp;nbsp;I'm not worried about too much, just getting the file name and path when a file is uploaded - simple.&lt;/P&gt;
&lt;P&gt;So why when I do something like this - direct from the docs -doesn't it work - am I missing something?&lt;/P&gt;
&lt;PRE&gt;var button = Dropbox.createChooseButton(options);&lt;BR /&gt; document.getElementById("container").appendChild(button);&lt;/PRE&gt;
&lt;PRE&gt;var options = {success: function(files) {&lt;/PRE&gt;
&lt;PRE&gt; alert("Here's the file link: " + files[0].link)&lt;BR /&gt; }&lt;/PRE&gt;
&lt;PRE&gt;}&lt;/PRE&gt;
&lt;P&gt;I don't get the alert?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:39:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Chooser-get-file-names-on-upload/m-p/161706#M5610</guid>
      <dc:creator>Russell P.</dc:creator>
      <dc:date>2019-05-29T09:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chooser get file names on upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Chooser-get-file-names-on-upload/m-p/161707#M5611</link>
      <description>&lt;P&gt;Do you see any error in the JavaScript console?&lt;/P&gt;
&lt;P&gt;If this is exactly your code, it looks like you're using the options variable before you actually assign it a value. I would expect you to see an error in the browser console.&lt;/P&gt;
&lt;P&gt;Try putting the "var options = ..." line above the call to Dropbox.createChooseButton.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 22:11:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Chooser-get-file-names-on-upload/m-p/161707#M5611</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-10-12T22:11:10Z</dc:date>
    </item>
  </channel>
</rss>

