<?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: video size is 0 bytes on upload in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-size-is-0-bytes-on-upload/m-p/294056#M17904</link>
    <description>&lt;P&gt;If you want to upload files directly from the client, instead of going through your server, you can use the functionality provided by /2/files/get_temporary_upload_link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_upload_link" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_upload_link&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The documentation there includes information on how to do that. &lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;Note that it's still in preview though, so it's subject to change without notice.&lt;/STRIKE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Feb 2019 19:21:30 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-02-04T19:21:30Z</dc:date>
    <item>
      <title>video size is 0 bytes on upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-size-is-0-bytes-on-upload/m-p/293582#M17883</link>
      <description>&lt;P&gt;when i upload my app using php api version 2 it upload the file but the size of file is 0 bytes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is mine code ..... can someone guide me&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$headers = array('Authorization: Bearer '. $token,&lt;BR /&gt;'Content-Type: application/octet-stream',&lt;BR /&gt;'Dropbox-API-Arg: '.&lt;BR /&gt;json_encode(&lt;BR /&gt;array(&lt;BR /&gt;"path"=&amp;gt; '/'. date("l-m-y") .'/'. basename($files1),&lt;BR /&gt;"mode" =&amp;gt; "add",&lt;BR /&gt;"autorename" =&amp;gt; true,&lt;BR /&gt;"mute" =&amp;gt; false&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;$ch = curl_init($api_url);&lt;/P&gt;&lt;P&gt;curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);&lt;BR /&gt;curl_setopt($ch, CURLOPT_POST, true);&lt;/P&gt;&lt;P&gt;$path = $files1;&lt;BR /&gt;$fp = fopen($path, 'rb');&lt;BR /&gt;$filesize = filesize($path);&lt;BR /&gt;&lt;BR /&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, fread($fp, $filesize));&lt;BR /&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;BR /&gt;// curl_setopt($ch, CURLOPT_VERBOSE, 1); // debug&lt;/P&gt;&lt;P&gt;$response = curl_exec($ch);&lt;BR /&gt;$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);&lt;BR /&gt;&lt;BR /&gt;if($http_code==200){&lt;BR /&gt;curl_close($ch);&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:10:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-size-is-0-bytes-on-upload/m-p/293582#M17883</guid>
      <dc:creator>amirishaque</dc:creator>
      <dc:date>2019-05-29T09:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: video size is 0 bytes on upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-size-is-0-bytes-on-upload/m-p/293592#M17884</link>
      <description>To begin debugging this, I recommend:&lt;BR /&gt;- Confirm that your $files1 value is correct.&lt;BR /&gt;- Confirm that the file at that path is non-zero and that you have access to it.&lt;BR /&gt;- Confirm that the 'fread' call is returning the non-zero data.</description>
      <pubDate>Fri, 24 Aug 2018 13:59:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-size-is-0-bytes-on-upload/m-p/293592#M17884</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-24T13:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: video size is 0 bytes on upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-size-is-0-bytes-on-upload/m-p/293741#M17886</link>
      <description>&lt;P&gt;how can i give the temporary path of my file to this ......... so it upload file directly ..... now i first upload file to server than it upload that file to dropbox&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 10:19:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-size-is-0-bytes-on-upload/m-p/293741#M17886</guid>
      <dc:creator>amirishaque</dc:creator>
      <dc:date>2018-08-25T10:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: video size is 0 bytes on upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-size-is-0-bytes-on-upload/m-p/294056#M17904</link>
      <description>&lt;P&gt;If you want to upload files directly from the client, instead of going through your server, you can use the functionality provided by /2/files/get_temporary_upload_link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_upload_link" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_upload_link&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The documentation there includes information on how to do that. &lt;BR /&gt;&lt;BR /&gt;&lt;STRIKE&gt;Note that it's still in preview though, so it's subject to change without notice.&lt;/STRIKE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 19:21:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/video-size-is-0-bytes-on-upload/m-p/294056#M17904</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-04T19:21:30Z</dc:date>
    </item>
  </channel>
</rss>

