<?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 v2 c# upload file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257791#M14951</link>
    <description>&lt;P&gt;It takes around 100 seconds to&amp;nbsp;throw the exception, Im thinking in&amp;nbsp;implementing a "session" to upload the file trough several small requests besause in the future I might need to upload larger files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still do not know how to implement it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_UploadSessionStartAsync.htm" target="_blank"&gt;http://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_UploadSessionStartAsync.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, hope this can help anyone with the same issue.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Dec 2017 16:32:16 GMT</pubDate>
    <dc:creator>Octavio1</dc:creator>
    <dc:date>2017-12-25T16:32:16Z</dc:date>
    <item>
      <title>API v2 c# upload file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/255997#M14825</link>
      <description>&lt;P&gt;Hi Dears,&lt;/P&gt;&lt;P&gt;am using asp.net core/c# i want upload folder but its not working&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using (var stream = new MemoryStream(File.ReadAllBytes(@"E:\a.txt")))&lt;BR /&gt;{&lt;BR /&gt;var response = client.Files.UploadAsync("/test/" + "&lt;SPAN&gt;a.txt&lt;/SPAN&gt;", WriteMode.Overwrite.Instance, body: stream);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please can anyone helop me&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/255997#M14825</guid>
      <dc:creator>Kardo</dc:creator>
      <dc:date>2019-05-29T09:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 c# upload file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/256186#M14836</link>
      <description>Can you elaborate on what you mean when you say it's "not working"? What error or unexpected output do you get?</description>
      <pubDate>Mon, 11 Dec 2017 15:12:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/256186#M14836</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-11T15:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 c# upload file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257680#M14943</link>
      <description>&lt;P&gt;You are missing the "await"&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Kardo ha escrito:&lt;BR /&gt;&lt;P&gt;Hi Dears,&lt;/P&gt;&lt;P&gt;am using asp.net core/c# i want upload folder but its not working&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using (var stream = new MemoryStream(File.ReadAllBytes(@"E:\a.txt")))&lt;BR /&gt;{&lt;BR /&gt;var response = &lt;STRONG&gt;await&lt;/STRONG&gt; client.Files.UploadAsync("/test/" + "&lt;SPAN&gt;a.txt&lt;/SPAN&gt;", WriteMode.Overwrite.Instance, body: stream);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please can anyone helop me&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;just before client.XXXX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used similar code and it works for small size files, however it does not work for big size files (over 30MB) I got the following exception System.Threading.Tasks.TaskCanceledException still do not know why.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2017 04:45:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257680#M14943</guid>
      <dc:creator>Octavio1</dc:creator>
      <dc:date>2017-12-23T04:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 c# upload file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257757#M14947</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/575332"&gt;@Octavio1&lt;/a&gt;&amp;nbsp;How long does that call take before failing with TaskCanceledException? I believe TaskCanceledException should indicate a timeout on the network connection for the API call.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2017 16:34:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257757#M14947</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-24T16:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 c# upload file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257791#M14951</link>
      <description>&lt;P&gt;It takes around 100 seconds to&amp;nbsp;throw the exception, Im thinking in&amp;nbsp;implementing a "session" to upload the file trough several small requests besause in the future I might need to upload larger files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still do not know how to implement it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_UploadSessionStartAsync.htm" target="_blank"&gt;http://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_UploadSessionStartAsync.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, hope this can help anyone with the same issue.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2017 16:32:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257791#M14951</guid>
      <dc:creator>Octavio1</dc:creator>
      <dc:date>2017-12-25T16:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 c# upload file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257935#M14957</link>
      <description>Thanks! It does sound like the connection is timing out then. You should generally be able to upload 30 MB in a single call, but this will depend on various factors, such as your network connection.&lt;BR /&gt;&lt;BR /&gt;Using upload sessions instead is the best solution. There's an example of using it here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L333" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L333&lt;/A&gt;</description>
      <pubDate>Wed, 27 Dec 2017 14:23:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257935#M14957</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-27T14:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 c# upload file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257949#M14962</link>
      <description>&lt;P&gt;You are right Gregg, after some investigation I found the following link for another thread for similar issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;used it with 1024KB chunks and it is woking properly.&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@BEEAA17610EBE252DA0E57250B296A61/images/emoticons/1f642.png" alt=":slight_smile:" title=":slight_smile:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/API-support/Issues-about-Chunkupload/m-p/214661#M11002" target="_blank"&gt;https://www.dropboxforum.com/t5/API-support/Issues-about-Chunkupload/m-p/214661#M11002&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll give it a try to the sample you sent and provide my experience to the comunity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&amp;nbsp;&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@E2F7D53C249D2CA37FB0CD78E32CFDED/images/emoticons/1f913.png" alt=":nerd:" title=":nerd:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L333" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L333&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 16:39:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257949#M14962</guid>
      <dc:creator>Octavio1</dc:creator>
      <dc:date>2017-12-27T16:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 c# upload file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257967#M14963</link>
      <description>&lt;P&gt;By the way, while it sounds like 30 MB is too big for your case, you may want to try something bigger than 1 MB, as a bigger chunk size will generally yield better performance overall. A good size to try would be 8 MB.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 19:40:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-c-upload-file/m-p/257967#M14963</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-27T19:40:42Z</dc:date>
    </item>
  </channel>
</rss>

