<?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: API Upload Always Zero in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/410802#M22223</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;So First I Tried This (Adding The /)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload \
  --header 'Authorization: Bearer MYTOKEN' \
  --header 'Content-Type: application/octet-stream' \
  --header 'Dropbox-API-Arg: {"path":"/RoomVT/Clown2.jpeg"}'\ 
  --data-binary @"/Splash.jpeg"&lt;/PRE&gt;&lt;P&gt;This Gave The Response.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-bash: --data-binary: command not found&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I Put A Space Between ' &amp;amp; \ To Give.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload \
  --header 'Authorization: Bearer MYTOKEN' \
  --header 'Content-Type: application/octet-stream' \
  --header 'Dropbox-API-Arg: {"path":"/RoomVT/Clown2.jpeg"}' \ 
  --data-binary @"/Splash.jpeg"&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Now I Get The Response&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl: (6) Could not resolve host:&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Both Add The File But Both At Zero Content????&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2020 15:10:53 GMT</pubDate>
    <dc:creator>jimbob1977</dc:creator>
    <dc:date>2020-04-16T15:10:53Z</dc:date>
    <item>
      <title>API Upload Always Zero</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/410675#M22217</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;When I upload a file using the code below the file appears in my folder at zero size.&lt;/P&gt;
&lt;P&gt;Uploading the file manually works fine. so I know the file is ok&lt;/P&gt;
&lt;P&gt;I've looked thru similar old posts but I'm still struggling - any advice??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload \
  --header 'Authorization: Bearer MYTOKEN' \
  --header 'Content-Type: application/octet-stream' \
  --header 'Dropbox-API-Arg: {"path":"/RoomVT/Clown2.jpeg"}' 
  --data-binary @"/Splash.jpeg"&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:14:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/410675#M22217</guid>
      <dc:creator>jimbob1977</dc:creator>
      <dc:date>2020-04-16T14:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: API Upload Always Zero</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/410777#M22220</link>
      <description>&lt;P&gt;It looks like you don't have a continuation "\" on the second to last line, like there is on the other lines, so the last line may not actually be given to curl which would result in no data being upload. Try adding that "\" back.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:41:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/410777#M22220</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-16T14:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: API Upload Always Zero</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/410802#M22223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;So First I Tried This (Adding The /)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload \
  --header 'Authorization: Bearer MYTOKEN' \
  --header 'Content-Type: application/octet-stream' \
  --header 'Dropbox-API-Arg: {"path":"/RoomVT/Clown2.jpeg"}'\ 
  --data-binary @"/Splash.jpeg"&lt;/PRE&gt;&lt;P&gt;This Gave The Response.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-bash: --data-binary: command not found&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I Put A Space Between ' &amp;amp; \ To Give.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload \
  --header 'Authorization: Bearer MYTOKEN' \
  --header 'Content-Type: application/octet-stream' \
  --header 'Dropbox-API-Arg: {"path":"/RoomVT/Clown2.jpeg"}' \ 
  --data-binary @"/Splash.jpeg"&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Now I Get The Response&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl: (6) Could not resolve host:&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Both Add The File But Both At Zero Content????&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 15:10:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/410802#M22223</guid>
      <dc:creator>jimbob1977</dc:creator>
      <dc:date>2020-04-16T15:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: API Upload Always Zero</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/410812#M22224</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1286547"&gt;@jimbob1977&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;What are results from following commands:&lt;/P&gt;&lt;PRE&gt;host content.dropboxapi.com
stat /Splash.jpeg&lt;/PRE&gt;&lt;P&gt;If the above commands results are as expected, probably you have messed up curl command arguments. Try to put everything on a single line:&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload -H 'Authorization: Bearer MYTOKEN' -H 'Content-Type: application/octet-stream' -H 'Dropbox-API-Arg: {"path":"/RoomVT/Clown2.jpeg"}' --data-binary @/Splash.jpeg&lt;/PRE&gt;&lt;P&gt;If some error brings up again, post entire error, not just part (i.e. which host couldn't be resolved, for example).&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 15:50:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/410812#M22224</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-04-16T15:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: API Upload Always Zero</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/411208#M22236</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;My fault - I had an error in the file path to Data Binary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 13:05:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-Upload-Always-Zero/m-p/411208#M22236</guid>
      <dc:creator>jimbob1977</dc:creator>
      <dc:date>2020-04-17T13:05:12Z</dc:date>
    </item>
  </channel>
</rss>

