Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
senthilnathan205
4 years agoExplorer | Level 3
How to upload file from external dll vb project
Hi sir,
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 f...
senthilnathan205
4 years agoExplorer | Level 3
hi sir,
thanks for ur reply
the version i used for dropbox api 6.25 for one
for two below code
var dpClinet = new Dropbox.Api.DropboxClient(TokenKey);
try
{
UploadArg uploadArg = new UploadArg(folder, WriteMode.Overwrite.Instance, true);
using (var mem = new MemoryStream(File.ReadAllBytes(fileToUpload)))
{
// var mem = new MemoryStream(File.ReadAllBytes(fileToUpload));
// var updated = await dpClinet.Files.UploadAsync(uploadArg, mem);
//var updated = await dpClinet.Files.UploadAsync(folder, WriteMode.Overwrite.Instance, body: mem);
FileMetadata fileMetadata = await dpClinet.Files.UploadAsync(folder, mode: WriteMode.Overwrite.Instance, autorename: false, body: mem);
}
}
catch(Exception ex)
{
DoNotify(ex.Message);
DoNotify(ex.StackTrace);
}
for three below errors
An error occurred while sending the request.
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Dropbox.Api.DropboxRequestHandler.<RequestJsonString>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Dropbox.Api.DropboxRequestHandler.<RequestJsonStringWithRetry>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Dropbox.Api.DropboxRequestHandler.<Dropbox-Api-Stone-ITransport-SendUploadRequestAsync>d__13`3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at AmberSoftDBPlugin.AmberSoftDB.<UploadFilesToDropBoxAsync>d__0.MoveNext() in D:\AmberSoftDBPlugin\AmberSoftDBPlugin\AmberSoftDB.cs:line 42
Greg-DB
Dropbox Community Moderator
4 years agosenthilnathan205 I just tried this code, plugging in my own values and access token, with v6.25.0 of the library, and it ran successfully for me.
Is that the entirety of the error output?
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.
- senthilnathan2054 years agoExplorer | Level 3
Hi Greg-DB
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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!