<?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: Error when uploading files via API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-files-via-API/m-p/750367#M32925</link>
    <description>&lt;P&gt;Thank you very very muc. This solved my issue. I have been using the code for over 2 years with no issues. Just yesterday the issue began. But I am thankful for the solution. It is now working properly. Many thanks&lt;/P&gt;</description>
    <pubDate>Sat, 10 Feb 2024 14:49:11 GMT</pubDate>
    <dc:creator>Ross82</dc:creator>
    <dc:date>2024-02-10T14:49:11Z</dc:date>
    <item>
      <title>Error when uploading files via API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-files-via-API/m-p/750349#M32923</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recently started having issues uploading files to dropbox via API. The error returned is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTTP/1.1 400 Bad Request&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output via curl is as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;* using HTTP/1.x&lt;/DIV&gt;
&lt;DIV&gt;&amp;gt; POST /2/files/upload HTTP/1.1&lt;/DIV&gt;
&lt;DIV&gt;Host: content.dropboxapi.com&lt;/DIV&gt;
&lt;DIV&gt;Accept: */*&lt;/DIV&gt;
&lt;DIV&gt;Authorization: Bearer MyBearerToken&lt;/DIV&gt;
&lt;DIV&gt;Dropbox-API-Arg: {&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"path":"file_to_upload",&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"mode":"add",&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"autorename": true,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"mute": false,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;"strict_conflict": false&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Content-Type:application/octet-stream&lt;/DIV&gt;
&lt;DIV&gt;Content-Length: 1130353&lt;/DIV&gt;
&lt;DIV&gt;Expect: 100-continue&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt; HTTP/1.1 400 Bad Request&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt; Content-Length: 1005&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt; Content-Type: text/html&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt; Vary: Accept-Encoding&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt; X-Dropbox-Response-Origin: local&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt; Date: Sat, 10 Feb 2024 10:02:13 GMT&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt; Server: envoy&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt; Connection: close&lt;/DIV&gt;
&lt;DIV&gt;* Closing connection&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Anybody know what could be happening?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thank you in advance&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Feb 2024 07:06:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-files-via-API/m-p/750349#M32923</guid>
      <dc:creator>Ross82</dc:creator>
      <dc:date>2024-02-12T07:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading files via API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-files-via-API/m-p/750358#M32924</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1627890"&gt;@Ross82&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Such an error appear when you have something wrong in your parameters. If you haven't reformatted your headers to post them here, then you have wrong HTTP header (every header in the header block should appear in a single line - your arguments are spread on multiple lines - bad syntax). If not exactly this, then there is something similar. In all cases there is content:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1627890"&gt;@Ross82&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&amp;lt; Content-Type: text/html&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;A human readable text that explains in details what's wrong. Something you have cut. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; In other words - you have ignored the answer of your question. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@488936AC5FA64023548E32631AFD9803/emoticons/1f600.png" alt=":grinning_face:" title=":grinning_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 13:43:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-files-via-API/m-p/750358#M32924</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-02-10T13:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading files via API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-files-via-API/m-p/750367#M32925</link>
      <description>&lt;P&gt;Thank you very very muc. This solved my issue. I have been using the code for over 2 years with no issues. Just yesterday the issue began. But I am thankful for the solution. It is now working properly. Many thanks&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 14:49:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-when-uploading-files-via-API/m-p/750367#M32925</guid>
      <dc:creator>Ross82</dc:creator>
      <dc:date>2024-02-10T14:49:11Z</dc:date>
    </item>
  </channel>
</rss>

