Comments
-
You appear to setting bytBlobdata to an empty array (with a size of the length of the file) and then uploading that, so the resulting file will just be zeros. You need to supply the actual file data instead. For example, you can just pass in fsBlobData as the body to UploadAsync instead of bytBlobdata.
-
Either way would work, but for the sake of simplicity you may want to use a single access token for both clients.
-
I'm not familiar enough with Java's HttpSession, and this may also depend on your particular setup, so I'm afraid I can't offer much insight on that side of things.
-
That's correct. There isn't a way to completely automate this, but I've sent this along as a feature request.
-
I'm not sure I understand your question. Can you elaborate? There shouldn't be any significant delay on the audit log, and you can request it whenever you want, for whatever time range you want.
-
The code looks fine at a glance. Are you running in to any issues with this? As long as all instances have access to the same session data, I would expect this to work. Specifically, as a security measure, what's happening is that the web auth flow needs to check that the "state" value passed back with the redirect URI (in…
-
Using the official Dropbox API 2 .NET SDK, that would look like this: var appKey = "<APP KEY>"; var appSecret = "<APP SECRET>"; this.client = new DropboxAppClient(appKey, appSecret); var oauth1AccessTokenKey = "<OAUTH 1 ACCESS TOKEN KEY>"; var oauth1AccessTokenSecret = "<OAUTH 1 ACCESS TOKEN SECRET>"; var…
-
It looks like you just need to use `RequestedVisibility.Password.Instance` instead of `new RequestedVisibility().AsPassword`. Try that out and let me know if it doesn't help.
-
The Dropbox API doesn't offer a general way to programmatically create accounts, but I'll be sure to pass this along as a feature request. This is possible via Dropbox Business API apps though, which can create accounts in the process of adding members to teams, but that only applies to Business teams.
-
There isn't an option to change that behavior, so the only workaround that comes to mind is to explicitly create the parent folder(s) first. We'll consider it a feature request for a better way to do this though.
-
It looks like the issue is the timezone that datetime.now is using by default. When interacting with the API, you should use UTC. So, instead of: end_time = dt.datetime.now() you can use: end_time = dt.datetime.utcnow()
-
I don't have an update on this unfortunately, but if you need an extension for access to API v1, please open an API ticket with the app key(s) you need an extension for: https://www.dropbox.com/developers/contact
-
You can't use an access token for a deleted app to connect to a new app, so the easiest solution would be to get a new access token for the new app. If you do need to recover the old app for some reason though, open an API ticket and we'll see if we can help.
-
If you're referring to the file specified in 'from_path', not the copy_v2 endpoint doesn't offer a way to simultaneously rename that one. If you're referring to the file specified in 'to_path', you can either specify a path with the destination path and name you want, or specify a file ID along with 'autorename:true' to…
-
When using an access token for an "app folder" app, that token will only be able to access files inside the special app folder created specifically for the app. By default, this is at /Apps/<app folder name>. That app folder is the implied root for any paths referenced by an access token for an app folder app. So for…
-
[Cross-linking for reference: https://stackoverflow.com/questions/46240874/how-to-add-data-app-key-in-app-accessrule-of-meteor-application-for-android ] Unfortunately the JavaScript Dropbox Chooser/Saver aren't built for use in Cordova. I'll send this along as a feature request for official support and instructions, but…
-
You can use the sharing_update_folder_policy method to change the settings of a team folder. Assuming you're using a Business API member file access app with the Python SDK, that would look like: import dropbox TEAM_ACCESS_TOKEN = "..." MEMBER_ID = "..." TEAM_FOLDER_ID = "..." dbx_team =…
-
@"dev1" If you're still seeing unexpected entries like that, please open an API ticket with the details so we can investigate. Thanks!
-
To get the sub-files and folders, you'll need to set the recursive parameter. So, for example, instead of: var list = await client.Files.ListFolderAsync(path); you would use: var list = await client.Files.ListFolderAsync(path, recursive:true); The "path" you then pass in to DownloadAsync should be the "PathLower" you…
-
Apologies, I'm not sure I follow. Did you try installing the library into both of the projects you mentioned? Is it working now?
-
Thanks! Can you try installing the SDK in both projects? Also, I believe you'll need to at least install System.Net.Http.
-
Using ListFolderAsync (and ListFolderContinueAsync) is the right way to list out files and folders in a Dropbox account via API v2 in .NET. If you want sub-folders and sub-files though, you'll need to explicitly set the recursive parameter for ListFolderAsync to true. There's more information on that in the documentation…
-
I don't have a timeline for this unfortunately.
-
@"Andrew H.15" Thanks for writing this up! I'll send it along to the right people on our side.
-
The Dropbox API v2 .NET SDK officially supports .NET Framework 4+, so you shouldn't need to upgrade to 4.5. How exactly did you install it? Also, can you confirm that you installed the latest version (currently v4.3.1)?
-
There's an example of using GetCurrentAccountAsync here: https://github.com/dropbox/dropbox-sdk-dotnet/blob/9803a40b3169acf66a2d14e29af8750ebe6e3e17/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L213 Calling GetSpaceUsageAsync works similarly, but with a different return type that contains the space information instead.
-
Using the Dropbox API v2 .NET SDK, you can get the account information like this using GetCurrentAccountAsync and GetSpaceUsageAsync: https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersUserRoutes_GetCurrentAccountAsync.htm…
-
@"MANISHBAJO" I see you also reported this in this GitHub issue so we'll follow up there.
-
Thanks for confirming that. I just tried this code using v4.3.1 of the SDK in Visual Studio (not Xamarin), and it worked there. That being the case it seems the issue is specific to Xamarin, so I'm afraid I can't offer a solution. I'll send this along as a request for official support for the SDK on Xamarin.
-
Did you install the Dropbox.Api package? That's not built for Xamarin, but there is a third party version meant for Xamarin: Xamarin.Dropbox.Api. That's made by a third party, so we can't officially support or endorse it, but it may work for you.