<?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: Dropbox API v2 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/205581#M9934</link>
    <description>&lt;P&gt;Awesome...Thanks a ton Greg!!! &amp;nbsp;I just tried it and it seems to be working for me... ☺&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a great forum. I have found a good platform in case I am stuck on anything!!!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2017 09:16:02 GMT</pubDate>
    <dc:creator>Madhavi T.</dc:creator>
    <dc:date>2017-02-07T09:16:02Z</dc:date>
    <item>
      <title>Dropbox API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/204955#M9879</link>
      <description>&lt;P&gt;I am trying out Dropbox API V2 using HTMl,JavaScript by making API calls with XMLHTTPRequest. To upload a file onto Dropbox the API requires a 'data-binary' property to be set with the path of the file you want to upload. Below is the reference link of API and its parameters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to set all the other properties and API is able to create a blank file at the specified path for 'Dropbox-API-Arg', however unable to pass the file from my machine to the API call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I set data-binary with the path of the file to upload, specifically in XMLHTTPRequest?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:26:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/204955#M9879</guid>
      <dc:creator>Madhavi T.</dc:creator>
      <dc:date>2019-05-29T09:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/205022#M9888</link>
      <description>The HTTP documentation has a curl example, where curl's "data-binary" option is used to supply the file request body from a local file.&lt;BR /&gt;&lt;BR /&gt;In JavaScript in the browser, you don't have direct access to use the user's local filesystem, so when using XMLHttpRequest, you can supply the file data directly by using the "send" method. There's an example here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/documentation/dropbox-api/409/uploading-a-file/18435/uploading-a-file-from-text-via-xmlhttprequest-in-javascript#t=201702021826219362095" target="_blank"&gt;https://stackoverflow.com/documentation/dropbox-api/409/uploading-a-file/18435/uploading-a-file-from-text-via-xmlhttprequest-in-javascript#t=201702021826219362095&lt;/A&gt;</description>
      <pubDate>Thu, 02 Feb 2017 18:29:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/205022#M9888</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-02T18:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/205438#M9916</link>
      <description>&lt;P&gt;Thanks for the useful information Greg. ☺&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried out the way you suggested and it seems that if I write a string (any sentence) in the value of the variable 'content' and pass it to the request keeping the path as a text file, it indeed creates a text file with the contents in it. However, I would like to pass the contents of an PDF file/image file to the request. When I try to get a file thorugh HTML input and pass it to the request, it simply creates a 0 bytes file in Dropbox with no content in it, and says the file can not be previewed. I believe this is happening because PDF files contains binary data and I am unable to do a binary-string conversion using JavaScript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me know if this is something you can help with. Any help is greatly appreciated. Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 09:14:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/205438#M9916</guid>
      <dc:creator>Madhavi T.</dc:creator>
      <dc:date>2017-02-06T09:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/205515#M9924</link>
      <description>There's another example for uploading from a file from an input tag here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/documentation/dropbox-api/409/uploading-a-file/1359/uploading-a-file-via-jquery-in-javascript#t=201702061903317042582" target="_blank"&gt;https://stackoverflow.com/documentation/dropbox-api/409/uploading-a-file/1359/uploading-a-file-via-jquery-in-javascript#t=201702061903317042582&lt;/A&gt;</description>
      <pubDate>Mon, 06 Feb 2017 19:04:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/205515#M9924</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-06T19:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/205581#M9934</link>
      <description>&lt;P&gt;Awesome...Thanks a ton Greg!!! &amp;nbsp;I just tried it and it seems to be working for me... ☺&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a great forum. I have found a good platform in case I am stuck on anything!!!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 09:16:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-v2/m-p/205581#M9934</guid>
      <dc:creator>Madhavi T.</dc:creator>
      <dc:date>2017-02-07T09:16:02Z</dc:date>
    </item>
  </channel>
</rss>

