<?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: Dropbox large file upload in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186505#M7917</link>
    <description>&lt;P&gt;Logging I had already added before posting the issue here. Logs were fine. Everything was right. But after upload is finished and when I check the file size in Dropbox that is changed&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2016 21:14:59 GMT</pubDate>
    <dc:creator>Suryakant D.</dc:creator>
    <dc:date>2016-05-27T21:14:59Z</dc:date>
    <item>
      <title>Dropbox large file upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186501#M7913</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying to upload big files with below code.&lt;/P&gt;
&lt;P&gt;String upload_id = dbxFiles.uploadSessionStart().finish().getSessionId();&lt;BR /&gt;byte[] temp = new byte[CHUNK];&lt;BR /&gt;int size = inputStream.available();&lt;BR /&gt;int cursor = 0;&lt;BR /&gt;while (cursor &amp;lt; size) {&lt;BR /&gt;&lt;BR /&gt;int totalRead = 0;&lt;BR /&gt;if ((size - cursor) &amp;lt; CHUNK) {&lt;BR /&gt;temp = new byte[size - cursor];&lt;BR /&gt;totalRead = inputStream.read(temp, 0, size - cursor);&lt;BR /&gt;} else {&lt;BR /&gt;totalRead = inputStream.read(temp, 0, CHUNK);&lt;BR /&gt;}&lt;BR /&gt;dbxFiles.uploadSessionAppend(upload_id, cursor).uploadAndFinish(new ByteArrayInputStream(temp));&lt;BR /&gt;cursor += totalRead;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;uploadFileMetadata = dbxFiles.uploadSessionFinish(new UploadSessionCursor(upload_id, cursor),&lt;BR /&gt;new CommitInfo(path, WriteMode.ADD, true, new Date(), false)).uploadAndFinish(inputStream);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the size of uploaded files are drastically changed. Can you please help me out&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:33:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186501#M7913</guid>
      <dc:creator>Surya K.</dc:creator>
      <dc:date>2019-05-29T09:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox large file upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186502#M7914</link>
      <description>&lt;P&gt;When you say the size is "drastically changed," could you be more specific? What's the value of "size" and how big is the resulting upload? How big is "CHUNK"?&lt;/P&gt;

&lt;P&gt;One quick debugging tip: try printing out the value of "totalRead" and "cursor" before each call to the API. This might help track down the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 19:44:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186502#M7914</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-05-27T19:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox large file upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186503#M7915</link>
      <description>&lt;P&gt;For my example 57 MB file uploaded with 4mb chunk become 98mb&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 20:25:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186503#M7915</guid>
      <dc:creator>Suryakant D.</dc:creator>
      <dc:date>2016-05-27T20:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox large file upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186504#M7916</link>
      <description>&lt;P&gt;Have you tried adding the logging I suggested? What does it reveal?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 21:12:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186504#M7916</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-05-27T21:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox large file upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186505#M7917</link>
      <description>&lt;P&gt;Logging I had already added before posting the issue here. Logs were fine. Everything was right. But after upload is finished and when I check the file size in Dropbox that is changed&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 21:14:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186505#M7917</guid>
      <dc:creator>Suryakant D.</dc:creator>
      <dc:date>2016-05-27T21:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox large file upload</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186506#M7918</link>
      <description>&lt;P&gt;Could you share the log here (and the updated code that generates that log)?&lt;/P&gt;
&lt;P&gt;It's hard to help you debug this without being able to see what's happening.&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 21:46:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-large-file-upload/m-p/186506#M7918</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-05-28T21:46:23Z</dc:date>
    </item>
  </channel>
</rss>

