<?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: Expecting one of &amp;quot;application/octet-stream&amp;quot;, &amp;quot;text/plain; charset=dropbox-cors-ha in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Expecting-one-of-quot-application-octet-stream-quot-quot-text/m-p/292632#M17855</link>
    <description>&lt;P&gt;The Dropbox API does not accept multipart requests, so you should not use MultipartEntityBuilder when constructing Dropbox API calls. &lt;BR /&gt;&lt;BR /&gt;For information on what is expected for a call /2/files/upload, please refer to the documentation:&lt;BR /&gt;&lt;BR /&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;BR /&gt;&lt;BR /&gt;As linked there, that endpoint is a "content-upload" style endpoint:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#content-upload-endpoints" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#content-upload-endpoints&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The data for the file you're uploading should be sent in the request body, with a "Content-Type" header or "application/octet-stream" of "text/plain; charset=dropbox-cors-hack". (The first one is preferred.)&lt;BR /&gt;&lt;BR /&gt;If you're using Java though, we recommend using the official Java SDK, which will do most of the work for you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 14:26:22 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-08-20T14:26:22Z</dc:date>
    <item>
      <title>Expecting one of "application/octet-stream", "text/plain; charset=dropbox-cors-hack".</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Expecting-one-of-quot-application-octet-stream-quot-quot-text/m-p/292619#M17854</link>
      <description>&lt;P&gt;I am using MultipartEntityBuilder to create Entity in java.&amp;nbsp;&lt;SPAN&gt;MultipartEntityBuilder needs&amp;nbsp;boundary value to be set. but dropbox is not allowing it to send.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when i do that, i m getting below error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in call to API function "files/upload": Bad HTTP "Content-Type" header: "text/plain; boundary=dRUj2TWABj74JeYRtJ2MYFIjWDyjWrAaMQE". Expecting one of "application/octet-stream", "text/plain; charset=dropbox-cors-hack".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;could anyone please help ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:10:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Expecting-one-of-quot-application-octet-stream-quot-quot-text/m-p/292619#M17854</guid>
      <dc:creator>Mayil</dc:creator>
      <dc:date>2019-05-29T09:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Expecting one of "application/octet-stream", "text/plain; charset=dropbox-cors-ha</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Expecting-one-of-quot-application-octet-stream-quot-quot-text/m-p/292632#M17855</link>
      <description>&lt;P&gt;The Dropbox API does not accept multipart requests, so you should not use MultipartEntityBuilder when constructing Dropbox API calls. &lt;BR /&gt;&lt;BR /&gt;For information on what is expected for a call /2/files/upload, please refer to the documentation:&lt;BR /&gt;&lt;BR /&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;BR /&gt;&lt;BR /&gt;As linked there, that endpoint is a "content-upload" style endpoint:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#content-upload-endpoints" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#content-upload-endpoints&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The data for the file you're uploading should be sent in the request body, with a "Content-Type" header or "application/octet-stream" of "text/plain; charset=dropbox-cors-hack". (The first one is preferred.)&lt;BR /&gt;&lt;BR /&gt;If you're using Java though, we recommend using the official Java SDK, which will do most of the work for you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 14:26:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Expecting-one-of-quot-application-octet-stream-quot-quot-text/m-p/292632#M17855</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-20T14:26:22Z</dc:date>
    </item>
  </channel>
</rss>

