-
PDF thumbnail URL instead of the file
Hi, I am using the API v2 and trying to retrieve the thumbnail URL of PDF files so I can use them inside <img> tags of my HTML code. Currently I use this endpoint and headers: POST https://content.dropboxapi.com/2/files/get_thumbnail Authorization: Bearer <access token> Dropbox-API-Arg: {"path": "/<path to file>.pdf",…
-
How sensitive are the app key and app secret?
It's all in the title really, what can someone achieve with my app key and app secret? The api needs to be authenticated against a user to access data. What are possible bad outcomes of a compromised app secret and key? Thanks!
-
tokenRevoke() won't unlink app on android
Hi, I'm making an android app using dropbox api v2. I want users to be able to revoke their token and unlink my app from dropbox from within the app itself; Essentially "logging out" of dropbox from the app. I seem to have gotten it to work using the tokenRevoke() method: mDbxClient.auth().tokenRevoke(); However when i log…
-
Xamarin Forms DropBox Api v2 C# Redirect Uri for iOS and Android
I used Dropbox api and successfulley got the token and and uploaded and download to and from Dropbox from both iOS and Android. Where my problem arise when the user gives app permission to dropbox there appears a code that has to be copy pasted by the user which is then used to get the access token. Recently I found some…
-
need help on dropbox api
i got the list of all files and folder using https://api.dropboxapi.com/2/files/list_folder API now i just want the url of image thumbnail, i also checked /get_preview and /get_thumbnail method from doc but not getting image thumbnail. Please let me know how can i get my image thumbnail without download or export that image
-
I can't get a logged in instance of DropboxClient
In another post about the 10814 error it said I could ignore the error, but in this case it looks like I'm not getting the instance of DropboxClient even after I log in. I get the following messages in my debug window: Spoiler DropboxViewController.viewWillAppear(_:) 2018-08-06 20:23:28.434567-0500 Gnolaum[35840:1973880]…
-
Why does PhotoWatch use Apple App Groups instead of just Dropbox?
Why does the PhotoWatch SwiftyDropbox sample take the design feature to use Apple App Groups instead of just a Dropbox folder? Is there a particular advantage in this design approach?
-
How do I get the information for the account that is currently logged in?
I would like to show the user the account that is currently logged in when he opens the app if he is already logged in in SwiftyDropbox in iOS. I am not able to find the documentation for that. There is currently no search feature in the documentation for Dropbox for Swift.
-
Use nginx to add access token to requests
I am trying to set up a simple proxy server on my local network which will add an Authorization Header and forward requests to the dropbox api. In particular to /2/files/upload I have tried simple to complex nginx configurations but always get 502 responses. Usually complainging about CORS. for example: my application does…
-
Peer closing connection before file downloads
Hello, I am facing problem in downloading a file from dropbox. Please help me to solve this problem. I am using Quectel module and Drop box APIs to download file from dropbox in my unit, Quectel module establishes connection with the Dropbox using AT commands and starts downloading file.Earlier it was working fine and I…
-
direct download link - mobile phone
hi, i am using the api to upload movies with MP4 extantion. and using DIRECT download links (DL=1) to download them. when i download the links in a desktop computer, it saves the file with the orginal filename and the MP4 extantion. but when i am using the link with a mobile phone (i tried several phone android) it saves…
-
Error message: The app has reached its user limit
Hello, I know this question has been answered before, but my issue is not resolved. The app is in development, number of max users allowed are 500. I am the first tester. I get the error message "the app has reached its limit", see screenshot attached. Thanks for your help
-
objc API: filesRoutes listFolder method not returning files
Hello, My app has been on the iOS app store for years syncing successfully with dropbox. In the past few days many customers have encountered an error that seems to be a result of the following method not returning any files, but it does return one folder: [[dropbox.filesRoutes…
-
File properties
Can anyone tell me why exactly I need to create a team to add file attributes to a file? All I want to do is add a single attribute called "FileParentIdentifier" (which will hold a string value i.e name of folder". It is very easy to add a custom attribute to file in Google Drive SDK. But in Dropbox, we need to create a…
-
Empty response for /get_current_account
Hi, some years ago I used the dropbox Api v1 and now I try to switch to v2. I managed to get the authorization done but now I'm struggeling with the /get_current_account endpoint. my php looks like that: public static function dropboxAuthorize($token) { $curl = curl_init(); curl_setopt($curl, CURLOPT_VERBOSE, 1);…
-
Issue in get preview api v2
Error in call to API function "files/get_preview": The request body is supposed to be empty, but it isn't; got "{\"path\":\"\\/2019_DB\\/Copies\\/A123\\/NEW\\/21004_1910036125.pdf\"}" $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch,…
-
Using .Net SDK to delete folder and its files?
I am looking at the SDK documentation and I can't find a method where I can call to delete a folder and its files. Currently I am creating a temp folder for hosting temporary files each day and then I want to delete it by using my app after a certain time expiry. I am creating the folder using the .Net SDK…
-
Unexpected response code 400
Hi, I had been able to successfully connect to dropbox using dropbox api. I am using the bundle dropbox-core-sdk 1.7.6 from maven repository. But since recently I am getting the below error from the same code. Caused by: com.dropbox.core.DbxException$BadResponse: unexpected response code: 400 at…
-
Auth.startOAuth2Authentication. Android returns "... User may have restricted profile"
<Also asked on StackOverflow> I'm adapting code from https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android to allow my photo-saving app to directly store files into Dropbox. I think I've managed to add the various libraries and functions that are required. However, when the app attempts Dropbox…
-
Android API get account email
I am not able to get the user account email after the authentication: I have this code (in Kotlin) on my onResume mDBApi!!.session.finishAuthentication() val accessToken = mDBApi!!.session.oAuth2AccessToken val client = DbxClientV2(DbxRequestConfig.newBuilder("dropbox/MyAppName").build(), accessToken) val email =…
-
files.listFolder error code -999 cancelled
I have the following code: let client = DropboxClient(accessToken: "<ACCESS_TOKEN>") print("!!! client=", client) client.files.listFolder(path: "").response { response, error in if let result = response { print("Folder contents:") for entry in result.entries { print(entry.name) } } else { print(error!) } } } I'm getting…
-
filesListFolder
I found old code at GitHub/SwiftyDropbox/PhotoWatch: if let client = Dropbox.authorizedClient { // List folder client.filesListFolder(path: "").response { response, error in if let result = response { println("Folder contents:") for entry in result.entries { println(entry.name) } } else { println(error!) } } } I figured…
-
`filesSearchMatch` has no `media_info`?
I'm using Dropbox Javascript SDK. In documentation, (http://dropbox.github.io/dropbox-sdk-js/global.html#FilesSearchMatch) `FilesSearchMatch` could have `FilesFileMetadata` and, `FilesFileMetadata` could have `media_info` optionally. But all my '.jpeg' photos which were taken from cameras(many kinds) have no `media_info`…
-
mulitple files upload doesnt work
Hi, I am currently using Files.UploadAsync to upload files to a folder. However, it is very slow to process if there are a bunch of files. I looked through the documentation and there isn't any method to upload a group or files with just a single call? Below is my code to upload single file var file =…
-
Get info about created app folder
Hello, I created an application with App Folder access type and i would like to get the metadata of application folder after it's creation. Is there a way to do this? I know that dropbox creates it under /Apps/<app_name> but in my locale it was created under /Приложения/<app_name> Thanks for help!
-
What format should the "Path" be for Dropbox APIV2
I am trying to upload a file in a path using dropbox api however, using the api explorer via: I am getting Error 400: for a wrong path I believe. If I for example have a shared folder path via /Files/SharedPath/Uploads/. What would be the proper path input to satisfy the example above? Thanks, b_diouf
-
Dropbox SDK
Hello, Can somebody please let me know how to get Dropbox sdk for development purpose. Is it free to use? Regards, Sukrut Gadre
-
Download file
Hello! I shared the folder: Got the file id using the method: /files/list_folder I'm trying to download a file by id: curl -X POST https://content.dropboxapi.com/2/files/download \ --header 'Authorization: Bearer <<api_token>>' \ --header 'Dropbox-API-Arg: {"path":"id:xRv0UGd0k-AAAAAAAAACgA"}' The file is downloaded…
-
Get the list of files
Hello! Sorry for my English. I have a shared link. I need to get a list of files. I execute the query: curl -X POST https://api.dropboxapi.com/2/files/list_folder \ --header "Authorization: Bearer <<my_app_token>>" \ --header "Content-Type: application/json" \ --data "{\"path\":…
-
Search API request
can you please explain the search API request limit of a user for a minute?