<?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: Upload zip file via Dropbox Api and curl in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-zip-file-via-Dropbox-Api-and-curl/m-p/340770#M19739</link>
    <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/55776674/upload-zip-file-via-dropbox-api-and-curl" target="_blank"&gt;https://stackoverflow.com/questions/55776674/upload-zip-file-via-dropbox-api-and-curl&lt;/A&gt;&amp;nbsp;]&lt;/P&gt;
&lt;P&gt;I'm glad to see you already worked this out!&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2019 17:24:47 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-04-22T17:24:47Z</dc:date>
    <item>
      <title>Upload zip file via Dropbox Api and curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-zip-file-via-Dropbox-Api-and-curl/m-p/340525#M19734</link>
      <description>&lt;DIV class="post-text"&gt;&lt;P&gt;I'm trying to upload .zip file using&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#files_upload" target="_blank" rel="nofollow noopener noreferrer"&gt;dropbox api&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;curl&lt;/LI&gt;&lt;LI&gt;bash script&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Curl request:&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload \
--header "Authorization: Bearer &amp;lt;Access Token&amp;gt;" \
--header "Dropbox-API-Arg: {\"path\": \"/upload.zip\"}" \
--header "Content-Type: application/octet-stream" \
--data-binary @/upload.zip&lt;/PRE&gt;&lt;P&gt;Uploading completed without errors. Downloading from another device (Ubuntu server) is also completed. But when I'm trying to unzip I get bellow error:&lt;/P&gt;&lt;PRE&gt;Archive:  upload.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of upload.zip or
        upload.zip.zip, and cannot find upload.zip.ZIP, period.&lt;/PRE&gt;&lt;P&gt;Something is not correct in my curl upload configuration I guess. Probably, there are some special config to upload and download .zip files.&lt;/P&gt;&lt;P&gt;What I'm doing wrong? How to upload .zip file via dropbox api in the reight way?&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="post-taglist grid gs4 gsy fd-column"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:06:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-zip-file-via-Dropbox-Api-and-curl/m-p/340525#M19734</guid>
      <dc:creator>AndrewRadchenko</dc:creator>
      <dc:date>2019-05-29T09:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Upload zip file via Dropbox Api and curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-zip-file-via-Dropbox-Api-and-curl/m-p/340541#M19735</link>
      <description>&lt;P&gt;As most of unworking situation, you have to check your code and syntax...&lt;/P&gt;&lt;P&gt;1) file path shall be inside quotes:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;--data-binary @"/upload.zip"&lt;/PRE&gt;&lt;P&gt;2) download path shall start with slash:&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/download \&lt;BR /&gt;    --header "Authorization: Bearer &amp;lt;Token&amp;gt;" \&lt;BR /&gt;    --header "Dropbox-API-Arg: {\"path\": \"/directory/upload.zip\"}" &amp;gt;&amp;gt;upload.zip&lt;/PRE&gt;&lt;P&gt;Generaly it's a good idea to check, if downloaded zip file hase the right file size. If file size is not the same as in local storage so uploading was not finished successfully. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2019 13:51:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-zip-file-via-Dropbox-Api-and-curl/m-p/340541#M19735</guid>
      <dc:creator>AndrewRadchenko</dc:creator>
      <dc:date>2019-04-21T13:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Upload zip file via Dropbox Api and curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-zip-file-via-Dropbox-Api-and-curl/m-p/340770#M19739</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/55776674/upload-zip-file-via-dropbox-api-and-curl" target="_blank"&gt;https://stackoverflow.com/questions/55776674/upload-zip-file-via-dropbox-api-and-curl&lt;/A&gt;&amp;nbsp;]&lt;/P&gt;
&lt;P&gt;I'm glad to see you already worked this out!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 17:24:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Upload-zip-file-via-Dropbox-Api-and-curl/m-p/340770#M19739</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-04-22T17:24:47Z</dc:date>
    </item>
  </channel>
</rss>

