Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
naveedsw
4 years agoHelpful | Level 6
Dot Net SDK provided by Dropbox is not updated with TLS 1.2
I AM TRYING TO UPDATE MY APP FROM TLS 1.0 TO TLS 1.2 AND POOR SUPPORT IS AVAILABLE AND REALLY UPSET.
ONLY JAVA AND PYTHON UPSTED SDK AVAILABLE.
- 4 years agoThanks alot issue resolved i have moved my application on google drive its working fine. Bye bye dropbox
naveedsw
4 years agoHelpful | Level 6
hi Thanks for your detail reply here is my code which was working fine before 13 Apr 2022
static string token = "sl.BGQcUuTPkIevMVmdApyqZuuAgXRn3lLOvhYlEroAFw4-Fb3Ez39x903gWSxFkR_m_tkq6CXU1Saz3IAc0qJtTb6hnhpb-r5C15WZ0W-lmBX6MKss7FOQ7k3z8VHivIWmuPyQTLk";
static void Main(string[] args)
{
para = args[0];
Myfolder = args[1];
actualpath = args[2];
PatientId = args[3];
ip = args[4];
var task = Task.Run((Func<Task>)Program.Run);
task.Wait();
Console.ReadKey();
}
static async Task Run()
{
using (var dbx = new DropboxClient(token))
{
//string file = actualpath;
string file = @"D:\testing.txt";
string folder = "/" + Myfolder;
// string filename = @"D:\testing.txt"; //para + ".pdf";
string filename = "testing" + ".txt";
string url = "";
using (var mem = new MemoryStream(File.ReadAllBytes(file)))
{
//try {
var full = await dbx.Users.GetCurrentAccountAsync();
var updated = dbx.Files.UploadAsync(folder + "/" + filename, WriteMode.Overwrite.Instance, body: mem);
updated.Wait();
var tx = dbx.Sharing.CreateSharedLinkWithSettingsAsync(folder + "/" + filename);
tx.Wait();
url = tx.Result.Url;
}
Console.Write(url);
}
}
and know i am getting following error
please let me know how can i remove this error.
Regards
Greg-DB
Dropbox Community Moderator
4 years agoI see you're getting an error "Could not create SSL/TLS secure channel.". That confirms that this is happening because Dropbox recently retired support for TLS 1.0 and 1.1. The Dropbox API servers now only support connections using TLS 1.2. You'll need to update your app/network client/environment to use TLS 1.2 in order to continue making Dropbox API calls.
I included some information about this in my first post in this thread. I've copied it here for reference:
For your client/environment, please refer to the relevant documentation for information on enabling the relevant platform support. For example, Microsoft in particular appears to have some resources here which may be helpful:
By the way, I see you posted a (short-lived) access token here. While that particular access token would be expired by now, for future reference, as a matter of security, do not post your access token(s).
- naveedsw4 years agoHelpful | Level 6Thanks alot issue resolved i have moved my application on google drive its working fine. Bye bye dropbox
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!