<?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 Testing the upload API via postman fails and returns error in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266444#M15632</link>
    <description>&lt;P&gt;I am working on Xamarin forms application and trying to use the REST API of dropbox to upload files in dropbox and hence for testing i tried to make a postman call to upload files into dropbox, it seems to work on the API explorer of dropbox but on the postman it fails even though i pass all the required parameter as explained in the API explorer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure what i am doing incorrect here OR if this is a bug or something not sure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if i can make calls via postman OR some issue with my header request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given is the error message i am getting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Error in call to API function "files/upload": Bad HTTP "Content-Type" header: "multipart/form-data; boundary=--------------------------387630636170231897718145".  Expecting one of "application/octet-stream", "text/plain; charset=dropbox-cors-hack".&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Postman error message" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2489iD9639933F216EC80/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-02-25 at 12.33.46 PM.png" alt="Postman error message" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Postman error message&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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:15:09 GMT</pubDate>
    <dc:creator>RaviDixit15</dc:creator>
    <dc:date>2019-05-29T09:15:09Z</dc:date>
    <item>
      <title>Testing the upload API via postman fails and returns error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266444#M15632</link>
      <description>&lt;P&gt;I am working on Xamarin forms application and trying to use the REST API of dropbox to upload files in dropbox and hence for testing i tried to make a postman call to upload files into dropbox, it seems to work on the API explorer of dropbox but on the postman it fails even though i pass all the required parameter as explained in the API explorer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure what i am doing incorrect here OR if this is a bug or something not sure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if i can make calls via postman OR some issue with my header request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given is the error message i am getting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Error in call to API function "files/upload": Bad HTTP "Content-Type" header: "multipart/form-data; boundary=--------------------------387630636170231897718145".  Expecting one of "application/octet-stream", "text/plain; charset=dropbox-cors-hack".&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Postman error message" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/2489iD9639933F216EC80/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-02-25 at 12.33.46 PM.png" alt="Postman error message" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Postman error message&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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:15:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266444#M15632</guid>
      <dc:creator>RaviDixit15</dc:creator>
      <dc:date>2019-05-29T09:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Testing the upload API via postman fails and returns error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266450#M15633</link>
      <description>*moves to API area*</description>
      <pubDate>Sun, 25 Feb 2018 19:00:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266450#M15633</guid>
      <dc:creator>Mark</dc:creator>
      <dc:date>2018-02-25T19:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Testing the upload API via postman fails and returns error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266581#M15639</link>
      <description>The /2/files/upload endpoint expects one of the cited "Content-Type" request headers, ideally "Content-Type: application/octet-stream". Based on the error message though, it appears your client is overriding your header setting and sending something else ("multipart/form-data; boundary..."). I can't offer support on configuring Postman itself, as it's made by a third party, but it's probably a matter of configuring the "Body" tab properly. I.e., make sure it's set to "binary". (Additionally, that "charset" would be part of the "Content-Type" header value itself, not another header. You probably don't need to set that anyway though.)&lt;BR /&gt;&lt;BR /&gt;Also, this would be a different issue, but your "Dropbox-API-Arg" value is incorrect. It should be the JSON for the API call parameters per the documentation: &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;</description>
      <pubDate>Mon, 26 Feb 2018 17:32:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266581#M15639</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-02-26T17:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Testing the upload API via postman fails and returns error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266652#M15647</link>
      <description>&lt;P&gt;I will try to check with postman once again based on your comments thanks for the guidance, one more thing is reason why i tried to use the API and not the dropbox native client for xamarin is that when it i try to run the iOS project i get an exception which says Dropbox client not found, i guess i will raise a new ticket for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any sample which uses the latest nugget package for dropbo client with .net framework 2.0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 05:24:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266652#M15647</guid>
      <dc:creator>RaviDixit15</dc:creator>
      <dc:date>2018-02-27T05:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Testing the upload API via postman fails and returns error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266716#M15656</link>
      <description>For .NET, we recommend using the official Dropbox API v2 .NET SDK if possible:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-dotnet&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There examples included with that here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/tree/master/dropbox-sdk-dotnet/Examples" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/tree/master/dropbox-sdk-dotnet/Examples&lt;/A&gt;</description>
      <pubDate>Tue, 27 Feb 2018 16:16:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Testing-the-upload-API-via-postman-fails-and-returns-error/m-p/266716#M15656</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-02-27T16:16:39Z</dc:date>
    </item>
  </channel>
</rss>

