-
Cannot auto rename file
I'm using Dropbox Java API to upload file. Following is the code to uploadFile with auto rename set to true void uploadFile(@NonNull final String inPath, @NonNull final InputStream inputStream) throws IOException, DbxException { client.files() .uploadBuilder(inPath) .withMode(WriteMode.ADD) .withAutorename(true)…
-
DropBoxRest API in C# OAuth2 Does not contain a definition for AuthorizeAsync
I'm not entirely sure where this goes. I'm trying to write a program that access specific files in my dropbox account but it keeps giving me this error message. How do I fix that? The error message appears on just this line of code: var authRequestUrl = await client.Core.OAuth2.AuthorizeAsync("code"); I'm still kind of…
-
List all files on dropbox using API v2
I would like to list all files on dropbox using API v2. Some example with java would be really nice. Currently I'm doing the following: public String syncFiles(DbxClientV2 client) throws ListFolderErrorException, DbxException { ListFolderBuilder listFolderBuilder = client.files().listFolderBuilder(""); ListFolderResult…
-
Accessing .tag or just listing folders Swift
I have looked everywhere and can't seem to find an answer. I am trying to list just folders in a table. When I do a listFolder call it gives me all the folders and files with a .tag. Is there any way to access that .tag or just list the folders? I know you can list files by using the Suffix but what about folders? Thanks…
-
Unable to list folder files in iOS Swift
I am facing below error when I am trying to list folder or get current account info. Please help Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://api.dropbox.com/2/users/get_current_account, NSLocalizedDescription=cancelled,…
-
OAuth2 No Redirect
I'm doing experiments with API and I found Dropbox API very user-friendly, but I'm missing one thing: is there any way to perform OAuth2 authentication like with Python library (no redirect, user copies and pastes code from web)? Thank you.
-
Dropbox Java SDK update to 3.0.3
Hello, We have received an email asking us to update our app to the latest version of the SDK within the next two months. This is because some return types from some endpoints may fail to deserialize correctly, raising a runtime exception. I have a couple of questions: 1. You mention that return types may fail to…
-
Out of memory with java sdk during uploading (unlimited upload buffer)
Hi, I'm tring to use the java sdk to move file from pc to dropbox space. I've written a method that upload file without problem while they are sufficently small (50MB), but generate a java.lang.OutOfMemoryError: Java heap space when the file is bigger This is the trace thati I obtain Exception in thread "main"…
-
Webhook Notifications Not Being Recieved
Hello, I am trying to implement webhooks, but I am encountering some issues. As you can see I have 1 developer user added, and I have also managed to get my site enabled. I used Generate Access Token, so that's why I didn't go through the OAuth process. <% import Foundation import SwiftEngine import SwiftyJSON let reqVal =…
-
Dropbox API V2 2/files/list_folder/ on empty folder
Hi there! We are receiving a 409 error "{"error_summary": "path/not_found/", "error": {".tag": "path", "path": {".tag": "not_found"}}}" when trying to list_folder inside a folder without subfolders. This behavior is new, as we were able to list_folder inside an empty folder before. Is there anything changed and not yet in…
-
Python SDK ERROR
When I run following code import dropbox dbx = dropbox.Dropbox('ACCESS TOKEN REMOVE') for entry in dbx.files_list_folder('').entries: print(entry.name) I got following error Traceback (most recent call last): File "", line 1, in runfile('/home/naruto/Desktop/CPG/dropbox_test.py', wdir='/home/naruto/Desktop/CPG') File…
-
Convert V1 User to V2 User With V2 BasicAccount Details
We have a set of applications that have been using the Dropbox V1 API and the users' Display Name, Token Value and Secret Value have been stored in the DB. We are now wanting to seamless convert the users' accounts across to the V2 API, without the users having to reauthenticate their accounts via the Dropbox website. We…
-
Dropbox files/list_folder behaviour
Hello, Actually I'm building an app that needs notifications when a file is created, modified or deleted. I have a webhook configured correctly. I just need notifications about these files, not the entire dropbox. I've tryed with /files/list_folder but it gives information of all files on a certain path and I don't want…
-
Change Notification
Hallo, Is there a way to register the authorized client for change notifications, including added/changed/removed files/folders? Thanks. Lg Sandro
-
Notify When File Change
Hi Dropbox Team, After I migrated from DB api V1 to V2, I have a problem about sync files. I don't know when the file is changed from Dropbox. Please help me. Thanks, Vang Doan
-
API v2 file id and File Chooser returning selected file id
It is my understanding that with upcoming API v2 we are going to get a unique "id" in file metadata to unambiguously refer to a file / folder. Is this "id" going to remain the same even if the user renames / moves the file / folder ? Will the HTML file chooser be able to return the "id" of the selected file(s) so that we…
-
Webhook Cursor
Hello, I don't get what is a cursor. What does Cursor on webhook? There is any example in java with a Cursor? I'm making an app that just need to know the files that the users has in the application folder. I need webhook because i need to notify my application if there's a new file or deleted file, but I don't get what is…
-
Access deleted files
It seems it is no longer possible in the v2 API to do much of anything with deleted files. Their metadata entries contain no ID or revision information, they cannot be downloaded, their revisions cannot be listed, and deleted folders cannot have their contents listed even with the include_deleted option set to true. Is…
-
Deleted files metadata
None of the v2 get_meta endpoints return any metadata regarding deleted files even though the documentation says they do is include_deleted = true. How does one go about getting the modified time of a file or folder after it's been flagged for deletion? Thanks
-
List files api return 429 Too Many Requests error
Hi, I used this api "https://api.dropboxapi.com/2/files/list_folder" to get list files from dropbxx and i get this error "The remote server returned an error: (429) Too Many Requests." i didn't find any result about this issue. Can you please describe why this issue happened and what is the solution for this issue. Thanks.
-
Ruby Gem for v2 API
Is this ever coming, particularly now that v1 is about to deprecated?
-
Dropbox API Bug: "Restricted Content" Error for Unrestricted Files
Hello, There seems to be an odd bug in the Dropbox API whereby if you try to download a plain text file containing nothing but a period, you receive a "Restricted Content" error and it refuses to download. One of our customers came across this after she had deleted content from a text file in our writing app but had left…
-
Error (400) with redirect_uri
I have the following api: guest1:8080/DropboxRest/app/dropbox/start: this url initializes everything and goes to dropbox for getting an access token. guest1:8080/DropboxRest/app/dropbox/finish: this is the redirect_uri where dropbox have to redirect. Instead of that, I obtain a 400 error. I've declared this url on Oauth2…
-
Mac authentication launching new instance of app
Migrating my Mac OS app to the V2 API, using the Dropbox SDK for Objective-C. Making good progress but having this issue: 1. Run app in XCode 2. Trigger authentication process 3. Safari appears and I'm prompted "<myAppName> would like access to the files and folders in your Dropbox." so I click Allow 4. Then I'm prompted…
-
how to get file_id, file_size metadata using filename gotten from file chooser (python)
I have used dropbox file chooser to download files and filelinks. After I extract the filenames using the file chooser, I want to get more extended metadta. To do that I first went through Oauth2, then I used the following python codes: fileid=dbx.files_get_metadata('/'+filename).id but got the following error message:…
-
Uploaded ZIP file is corrupted
After uploading a compressed ZIP file cannot be opened by the 7Zip or WinZip program on my desktop PC. I can open the original file but after I upload it using the sample code below, the file is about 90KB larger and corrupted. Does anyone know what I am doing wrong? Thank you in advance. cj51 ---------------------SAMPLE…
-
[Java SDK V2] How to distinguish if Metadata is file or folder
Hello, I need to distunguish, if Metadata I got is file or folder. Is there any recommended way, how to do this? I came up just with using instanceof operator, here is a snippet from integration tests: final Metadata fileMetadata = client.files().getMetadata(destFile); assertTrue(fileMetadata instanceof FileMetadata);…
-
Problem to get the auth code
Hi All: I have a problem when I was trying to get the auth code. I am using WPF and tring to get the "auth-code-input" from the webpage that dropbox direct to. But the when I was using the following code it alway get null. For now, I set the redirct_uri to empty, does this matter? mshtml.IHTMLDocument3 doc3 =…
-
Why does the official Dropbox Android SDK not contain an intent?
I've recently decided to integrate Dropbox into my simple app. I followed the github official example and the tutorial Dropbox posted for Android. However, after expanding my horizons I realized this works just as well, without an app key and other things: Intent intent = new…
-
What is the minimum entries from a ListFolderResult to cause hasMore to be true?
What is the minimum entries from a ListFolderResult to cause hasMore to be true? I'm writing an application and wanted to test what happens when has more is true. It does not seem that this API support pagination.