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.
The Dropbox .NET SDK is already automatically uses the best available version of TLS, though we recommend updating to the latest version of SDK in general as a best practice, if you haven't already. The latest version of the Dropbox .NET SDK is currently v6.26.0. While the Dropbox SDK itself will use the best available TLS protocol version, this will also depend on what TLS protocol version your platform itself supports. You'll need to make sure your platform has support for TLS v1.2 enabled. 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:
i think i am wasting my time here drobox is a simple platform and now its a HELL. i think i have search some other service. how can i refund my payment.
Dropbox offers the official Dropbox API v2 .NET SDK here: https://github.com/dropbox/dropbox-sdk-dotnet
There are instructions for that here: https://github.com/dropbox/dropbox-sdk-dotnet#readme
And examples here: https://github.com/dropbox/dropbox-sdk-dotnet/tree/main/dropbox-sdk-dotnet/Examples
For instance, this example includes code for uploading files: https://github.com/dropbox/dropbox-sdk-dotnet/blob/main/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L133
That can be used both client-side (such as in desktop apps) as well as server-side. That may not be as simple as you're looking for though, as it offers a substantial amount of functionality for using the entire Dropbox API for a number of different scenarios. Dropbox does not offer a different or simpler .NET SDK than that.
Anyway, this is the forum for API questions, but if you have any account/payments questions, you can contact the relevant support department here: https://www.dropbox.com/support/
hi,
Can anyone tell me what is "authorize" value here and "token" in provided SDK
// URL to receive OAuth 2 redirect from Dropbox server.// You also need to register this redirect URL on https://www.dropbox.com/developers/apps.private readonly Uri RedirectUri = new Uri(LoopbackHost + "authorize");
// URL to receive access token from JS.private readonly Uri JSRedirectUri = new Uri(LoopbackHost + "token");
In the code snippet you shared, "authorize" and "token" are just strings used as URL paths on the local server used to handle the result of the OAuth app authorization in that example app.
Thanks for your reply. do you have any video tutorial which can explain the tutorial comments written with this SDK is not enough to understand for me. i am sorry i am taking your time but i am really helpless, please convey my message to developer team currently i am trying to switch google drive and i found hundreds of videos available on web. dropbox have some old SDK's which they copy past against each post or problem. we know that dropbox totally change the idea from simple TLS 1.1 to TLS 1.2 but 3 years old SDK are not enough they should make videos and more sdks as well.
know you can help me to understand the following url purpose and where i get it from.
private const string LoopbackHost = "http://127.0.0.1:52475/";
We don't have video tutorials for the API/SDKs, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
The "LoopbackHost" in the example is the address of a local server, defined by the app, used for the redirect URI for the OAuth app authorization flow. That's where the app receives the result of the app authorization step to complete the flow.
Thank you so much to understand my problem and your time i am trying my best to understand new dropbox system. actually I don't know where to start. i have created console app on dropbox get App key and App secret but I feel very unfordable its not proper way to do any thing. i need step by step tutorial to learn this new system again thanks for your time.
Dropbox doesn't offer a step by step tutorial for this exactly, but perhaps you can elaborate on what you need to do at a high level, what you have so far, and what exactly isn't working.
For instance, in your first post you mentioned you needed to update your app from TLS 1.0 to 1.2. Does that mean you already had some working app/code? If so, while we recommend using the latest version of the SDK, it's not strictly required. Older versions of the same Dropbox .NET SDK can use TLS 1.2, without you changing your SDK/code, as long as your platform/framework itself supports it. In that case you may be able to update your platform/framework to support TLS 1.2 without needing to update your code itself or the version of the SDK you're using.
Also, I see you've spent some time looking at the examples for using the OAuth app authorization flow, but if this is only for your own use for connecting to your own account and you already had that connection working, via a long-lived access token (or short-lived access token and refresh token), for example, then you don't need to implement the OAuth app authorization flow now. (A TLS error would be unrelated to the access token you're using.)
Otherwise, feel free to share what you have so far and what exactly isn't working.
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
I 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).