<?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: UploadAsync fails with small files &amp;gt; 100K and &amp;lt; 1MB in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/UploadAsync-fails-with-small-files-gt-100K-and-lt-1MB/m-p/184851#M7775</link>
    <description>&lt;P&gt;Hi Gregory, thanks for the quick reply.&lt;/P&gt;
&lt;P&gt;If failed for any files &amp;gt; 100K; sorry my title wasn't clear, by &amp;nbsp;&amp;lt; 1MB I meant I wasn't testing with files larger than 1MB.&lt;/P&gt;
&lt;P&gt;As for the proxy, anti-virus, etc. &amp;nbsp;I tried&amp;nbsp;it on my 2nd internet connection (should have thought of that in the first place) and everything seems to work well! &amp;nbsp;Unfortunately I'm no export when it comes to routers, etc., so I'm not sure why the&amp;nbsp;modem of my main internet connections fails like that.&lt;/P&gt;
&lt;P&gt;I'll try to look into this and will post my findings.&lt;/P&gt;
&lt;P&gt;Thanks again for your help, much appreciated!&lt;BR /&gt;Mario&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2016 17:24:13 GMT</pubDate>
    <dc:creator>Mario B.17</dc:creator>
    <dc:date>2016-05-20T17:24:13Z</dc:date>
    <item>
      <title>UploadAsync fails with small files &gt; 100K and &lt; 1MB</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/UploadAsync-fails-with-small-files-gt-100K-and-lt-1MB/m-p/184848#M7772</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I used the sample code for UploadAsync() method, in VB.Net, VS 2015, .Net 4.5, API v3.1.2, and for very small files it works perfectly. &amp;nbsp;However for somewhat larger files, ie 151K it never works.&lt;/P&gt;
&lt;P&gt;I also tried the sample code that uses UploadSessionStartAsync, &amp;nbsp;UploadSessionAppendAsyncV2 and UploadSessionFinishAsync, with the same file (151K) and I got it to work only once when setting the chunksize to 24 * 1024, but it's extremely slow to upload.&lt;/P&gt;
&lt;P&gt;Here's my code for UploadAsync;&lt;/P&gt;
&lt;P&gt;Dim t As Files.FileMetadata&lt;BR /&gt;Dim fs As New MemoryStream(System.IO.File.ReadAllBytes(file))&lt;/P&gt;
&lt;P&gt;Log("Uploading " &amp;amp; file)&lt;/P&gt;
&lt;P&gt;Try&lt;BR /&gt; t = Await mDBX.Files.UploadAsync("/" &amp;amp; dbFolder &amp;amp; "/" &amp;amp; dbFileName, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Files.WriteMode.Overwrite.Instance, False, , True, fs)&lt;BR /&gt; Log("File uploaded: UFID = " &amp;amp; t.Id)&lt;/P&gt;
&lt;P&gt;Catch ex As Exception&lt;BR /&gt; 'MsgBox(ex.Message &amp;amp; vbCrLf &amp;amp; ex.StackTrace.ToString, MsgBoxStyle.Critical)&lt;/P&gt;
&lt;P&gt;End Try&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated,&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Mario&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error I get is:&lt;/P&gt;
&lt;P&gt;Error: Error while copying content to a stream.&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt; at Dropbox.Api.DropboxRequestHandler.&amp;lt;RequestJsonString&amp;gt;d__20.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt; at Dropbox.Api.DropboxRequestHandler.&amp;lt;RequestJsonStringWithRetry&amp;gt;d__10.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt; at Dropbox.Api.DropboxRequestHandler.&amp;lt;Dropbox.Api.Babel.ITransport.SendUploadRequestAsync&amp;gt;d__5`3.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt; at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()&lt;BR /&gt; at TestDropBox.frmMain.VB$StateMachine_6_UploadFile.MoveNext() in \\vmware-host\shared folders\Documents\Visual Studio 2015\Projects\TestDropBox\TestDropBox\Form1.vb:line 62&lt;BR /&gt;Error: Unable to read data from the transport connection: The connection was closed.&lt;BR /&gt; at System.Net.ConnectStream.IOError(Exception exception, Boolean willThrow)&lt;BR /&gt; at System.Net.ConnectStream.EndWrite(IAsyncResult asyncResult)&lt;BR /&gt; at System.Net.Http.StreamToStreamCopy.BufferWrittenCallback(IAsyncResult ar)&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:33:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/UploadAsync-fails-with-small-files-gt-100K-and-lt-1MB/m-p/184848#M7772</guid>
      <dc:creator>Mario B.17</dc:creator>
      <dc:date>2019-05-29T09:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: UploadAsync fails with small files &gt; 100K and &lt; 1MB</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/UploadAsync-fails-with-small-files-gt-100K-and-lt-1MB/m-p/184849#M7773</link>
      <description>&lt;P&gt;Thanks for the report! We're taking a look.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 05:46:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/UploadAsync-fails-with-small-files-gt-100K-and-lt-1MB/m-p/184849#M7773</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-20T05:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: UploadAsync fails with small files &gt; 100K and &lt; 1MB</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/UploadAsync-fails-with-small-files-gt-100K-and-lt-1MB/m-p/184850#M7774</link>
      <description>&lt;P&gt;Hi Mario, I can't seem to reproduce this. Have you tried it from a different network connection? There might be something on your connection (e.g., proxy, anti-virus, firewall, etc.) that is interfering.&lt;/P&gt;
&lt;P&gt;Also, in the title, you said it fails for files "&amp;gt; 100K and &amp;lt; 1MB".&amp;nbsp;You said it works for small files, but does it also work reliably for files &amp;gt;1 MB?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 07:50:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/UploadAsync-fails-with-small-files-gt-100K-and-lt-1MB/m-p/184850#M7774</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-20T07:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: UploadAsync fails with small files &gt; 100K and &lt; 1MB</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/UploadAsync-fails-with-small-files-gt-100K-and-lt-1MB/m-p/184851#M7775</link>
      <description>&lt;P&gt;Hi Gregory, thanks for the quick reply.&lt;/P&gt;
&lt;P&gt;If failed for any files &amp;gt; 100K; sorry my title wasn't clear, by &amp;nbsp;&amp;lt; 1MB I meant I wasn't testing with files larger than 1MB.&lt;/P&gt;
&lt;P&gt;As for the proxy, anti-virus, etc. &amp;nbsp;I tried&amp;nbsp;it on my 2nd internet connection (should have thought of that in the first place) and everything seems to work well! &amp;nbsp;Unfortunately I'm no export when it comes to routers, etc., so I'm not sure why the&amp;nbsp;modem of my main internet connections fails like that.&lt;/P&gt;
&lt;P&gt;I'll try to look into this and will post my findings.&lt;/P&gt;
&lt;P&gt;Thanks again for your help, much appreciated!&lt;BR /&gt;Mario&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 17:24:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/UploadAsync-fails-with-small-files-gt-100K-and-lt-1MB/m-p/184851#M7775</guid>
      <dc:creator>Mario B.17</dc:creator>
      <dc:date>2016-05-20T17:24:13Z</dc:date>
    </item>
  </channel>
</rss>

