<?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: How to upload file from external dll vb project in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/609029#M28207</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1554782"&gt;@senthilnathan205&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I replace token key each 4hr&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, exactly validity period (up border) for access token (as you named it "token key"). 🤷 Continue, if you like to be so. Otherwise, change you code to use refresh token too. That's it.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 12:21:49 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2022-07-12T12:21:49Z</dc:date>
    <item>
      <title>How to upload file from external dll vb project</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/607752#M28160</link>
      <description>&lt;P&gt;Hi sir,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I use the Dropbox.Api dll in my own dll that i create. i use the dll in my other project to upload files in dropbox i pass token key. dropbox folder path, local file path. i use the function Files.UploadAsync(), i got exception like this "&lt;STRONG&gt;An error occurred while sending the request.&lt;/STRONG&gt;" and also have stack trace like this&lt;/P&gt;
&lt;P&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&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.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at Dropbox.Api.DropboxRequestHandler.&amp;lt;RequestJsonStringWithRetry&amp;gt;d__18.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Dropbox.Api.DropboxRequestHandler.&amp;lt;Dropbox-Api-Stone-ITransport-SendUploadRequestAsync&amp;gt;d__13`3.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&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 AmberSoftDBPlugin.AmberSoftDB.&amp;lt;UploadFilesToDropBoxAsync&amp;gt;d__0.MoveNext() in D:\AmberSoftDBPlugin\AmberSoftDBPlugin\AmberSoftDB.cs:line 42&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can u help how to&amp;nbsp; solve the issue above happen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 15:31:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/607752#M28160</guid>
      <dc:creator>senthilnathan205</dc:creator>
      <dc:date>2022-07-06T15:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file from external dll vb project</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/607872#M28163</link>
      <description>&lt;P&gt;I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the name and version number of the platform and SDK/library you are using, if any&lt;/LI&gt;
&lt;LI&gt;the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)&lt;/LI&gt;
&lt;LI&gt;the full text of any error or unexpected output (the output you shared here doesn't seem to show the full error message from the Dropbox API/SDK)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 06 Jul 2022 14:40:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/607872#M28163</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-07-06T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file from external dll vb project</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/608000#M28165</link>
      <description>&lt;P&gt;hi sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;thanks for ur reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the version i used for dropbox api 6.25&amp;nbsp; for one&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="senthilnathan205_0-1657165449563.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/30174iE5EAFF01D9873605/image-size/medium?v=v2&amp;amp;px=400" role="button" title="senthilnathan205_0-1657165449563.png" alt="senthilnathan205_0-1657165449563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for two below code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var dpClinet = new Dropbox.Api.DropboxClient(TokenKey);&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;UploadArg uploadArg = new UploadArg(folder, WriteMode.Overwrite.Instance, true);&lt;BR /&gt;using (var mem = new MemoryStream(File.ReadAllBytes(fileToUpload)))&lt;BR /&gt;{&lt;BR /&gt;// var mem = new MemoryStream(File.ReadAllBytes(fileToUpload));&lt;BR /&gt;// var updated = await dpClinet.Files.UploadAsync(uploadArg, mem);&lt;BR /&gt;//var updated = await dpClinet.Files.UploadAsync(folder, WriteMode.Overwrite.Instance, body: mem);&lt;BR /&gt;FileMetadata fileMetadata = await dpClinet.Files.UploadAsync(folder, mode: WriteMode.Overwrite.Instance, autorename: false, body: mem);&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;BR /&gt;catch(Exception ex)&lt;BR /&gt;{&lt;BR /&gt;DoNotify(ex.Message);&lt;BR /&gt;DoNotify(ex.StackTrace);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;for three below errors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An error occurred while sending the request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&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.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at Dropbox.Api.DropboxRequestHandler.&amp;lt;RequestJsonStringWithRetry&amp;gt;d__18.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Dropbox.Api.DropboxRequestHandler.&amp;lt;Dropbox-Api-Stone-ITransport-SendUploadRequestAsync&amp;gt;d__13`3.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&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 AmberSoftDBPlugin.AmberSoftDB.&amp;lt;UploadFilesToDropBoxAsync&amp;gt;d__0.MoveNext() in D:\AmberSoftDBPlugin\AmberSoftDBPlugin\AmberSoftDB.cs:line 42&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 03:53:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/608000#M28165</guid>
      <dc:creator>senthilnathan205</dc:creator>
      <dc:date>2022-07-07T03:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file from external dll vb project</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/608113#M28167</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1554782"&gt;@senthilnathan205&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;var dpClinet = new Dropbox.Api.DropboxClient(TokenKey);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1554782"&gt;@senthilnathan205&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;At the beginning, one error not directly related to the current issue, but will bring up soon, if let unfixed in advance. In your client initialization you are using access token only. This type of token is with limited validity (at most 4 hours). After that, user will need to relink your application again and again... To avoid such continuous token expiration, you have to initialize you client object with refresh token, access token expiration time, and application key (application secret might be need too depending on selected authentication type) in addition to the access token. If need, change your authentication flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1554782"&gt;@senthilnathan205&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;FileMetadata fileMetadata = await dpClinet.Files.UploadAsync(folder, mode: WriteMode.Overwrite.Instance, autorename: false, body: mem);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hm...&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; What's the content of 'folder' passed as 'path' parameter? Take in mind that path has to point to the target file (full path) where the 'body' will be put to, not to the containing folder only! Dropbox can NOT know what's the desired file name, if not pointed explicitly. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 13:27:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/608113#M28167</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-07-07T13:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file from external dll vb project</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/608201#M28170</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1554782"&gt;@senthilnathan205&lt;/a&gt; I just tried this code, plugging in my own values and access token, with v6.25.0&amp;nbsp; of the library, and it ran successfully for me. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that the entirety of the error output?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Also, is there anything on your network connection, such as a proxy, firewall, VPN, anti-virus, etc., that may be interfering with your connections to content.dropboxapi.com? You may need to contact your network admin for help with that.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 18:01:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/608201#M28170</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-07-07T18:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file from external dll vb project</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/608965#M28205</link>
      <description>&lt;P&gt;hi sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I replace token key each 4hr&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 06:06:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/608965#M28205</guid>
      <dc:creator>senthilnathan205</dc:creator>
      <dc:date>2022-07-12T06:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file from external dll vb project</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/608968#M28206</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;thanks for reply. I use sample project to check the code it work correctly, but i use the in form behavior in Rapid flow here only not work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 06:09:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/608968#M28206</guid>
      <dc:creator>senthilnathan205</dc:creator>
      <dc:date>2022-07-12T06:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file from external dll vb project</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/609029#M28207</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1554782"&gt;@senthilnathan205&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I replace token key each 4hr&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, exactly validity period (up border) for access token (as you named it "token key"). 🤷 Continue, if you like to be so. Otherwise, change you code to use refresh token too. That's it.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 12:21:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/609029#M28207</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-07-12T12:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file from external dll vb project</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/609091#M28209</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1554782"&gt;@senthilnathan205&lt;/a&gt; Yes, as Здравко noted, if you need access for more than four hours, you should request and use a refresh token as well. For &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_blank" rel="noreferrer nofollow noopener"&gt;the official Dropbox API v2 .NET SDK&lt;/A&gt;, you can find an example of getting and using a refresh token in &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Examples/OauthBasic/Program.cs" target="_blank" rel="noreferrer nofollow noopener"&gt;the OauthBasic example&lt;/A&gt; (non-PKCE, meant for server-side apps) as well as in &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Examples/OAuthPKCE/Program.cs" target="_blank" rel="noreferrer nofollow noopener"&gt;the OAuthPKCE example&lt;/A&gt; (PKCE, meant for client-side apps)&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 15:51:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-upload-file-from-external-dll-vb-project/m-p/609091#M28209</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-07-12T15:51:33Z</dc:date>
    </item>
  </channel>
</rss>

