-
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?
-
Video uploaded via api cant be played
I tried to upload a mp4 video that is above 150mb with the session api and I successfully uploaded it to dropbox without a single error, but the video just wont play. Accessing the video via a shared link with raw=0 results in the browser not playing the video because the file is in a not supported video format. Does…
-
Dropbox and Bulk Restores
Has anyone figured out how to use the API to list all events for a given dropbox? Finding specific ones in the past to ask support for help with them is problematic, as after a year back, you have to manually change the URL for each date to see what events occurred on a given day. And with Packrat, all deletes should be…
-
SDK javascript : Tester la validité de la clé
Bonjour, Pour accèder a mes fichiers Dropbox, je créé l'objet dbx comme suis: dbx = new Dropbox.Dropbox({accessToken: DROPBOXAPIKEY}); dbx à toujours une valeur, même si la clé n'est pas valide. Comment puis-je tester dbx pour savoir si la clé est valide ou non ? Merci de votre réponse. Yvan COYAUD
-
C# SDK - Is there a way of restricting a property search to a start path?
Hi all, We have a problem where we need to restrict a property search to a start path just like a normal search, code below (C Sharp): //Here we set a path to search from var search = await client.Files.SearchAsync(path, "test"); //Here we need to set a path to restrict users from seeing images they shouldnt but currently…
-
Time out for 250 MB file download
Below code getting terminated with error: Read timed out. (read timeout=30) for 250MB file import dropbox dbx = dropbox.Dropbox("TokenId") print "download started" md, zipFile = dbx.files_download_zip("Filepath") writer = open("download/Test.zip", 'wb') writer.write(zipFile.content) writer.close()
-
Get all shared links in specifick folder
What is the way to get all shared links from specific folder I am using Python SDK, so I see that there is a sharing_list_shared_links method, with 'path' arg. It returns only totally all links I can access or specific one which I specify, but I can not choose the folder which content to display.
-
409 reset error for list_folder/continue api from business endpoint
I'm trying to retrieve folder items of team member by following this link https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-get-all-the-files-and-folders-of-a-business-account/m-p/281388. I am able to get result from list_folder api but when I pass cursor to list_folder/continue api I get below error. {…
-
Create team folder in business endpoint
I am trying to create team folder with Dropbox Business Standard plan in dropbox api explorer curl -X POST https://api.dropboxapi.com/2/team/team_folder/create \ --header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\ --header 'Content-Type: application/json' \ --data '{"name":"test"}' But it gives me…
-
ASP.NET shared link to a folder. Is it posible to choose one item by name to download it?
So, i have a project in ASP.NET MVC. I have a shared link to a folder with lots of photos in jpg formatt. Using ListFolderAsync i can see the names of the archives(all the metadata, in fact) but since the shared folder it's not from my dropbox the metadata does not contain the paths of the items. I Would like to use…
-
Trigger or simulate errors in Python SDK
Hi, Apologies if this is a duplicate question, but I haven't been able to find anything that covers this. I'm developing a Python API with the Dropbox SDK to work with our files on Dropbox. I'd like our API to be able to handle Dropbox errors gracefully, using errorhandlers and the Dropbox exception classes, but for some…
-
Uploading to a shared folder through api
I'm working on integrating dropbox to my company's website and we want to add a feature in to allow the users to share their shared folders to us and using the dropbox api, we upload files to the shared folder that they provided. These shared folders will be in a seperate account that the one we use on our website. Is this…
-
CORS Problem when playing Dropbox shared link mp3 file
Hi, I'm trying to use Web Audio to adjust tune of a song. I can play the song through a Dropbox shared link using <audio src="https://www.dropbox.com/s/[my shared link here]?dl=1"></audio> However, when I connect the audio node to Web Audio context and try to play it, it gives me this error: MediaElementAudioSource outputs…
-
Call dropbox folder and its files names via an API
Hello, Can you help me to understand if it is possible to call a Dropbox folder link as I show “manually” in the below image, ideally not to the web version but the windows explorer, via a macro. The idea is to read and list all the files names in each specific folder of a tre of folders. The same question to call the…
-
https://content.dropboxapi.com/2/files/get_preview issue 409
Hello. I'm trying to get a preview of files stored in shared Dropbox folder, I'm working on JS and I'm getting this error 409 : path not found. This is my script:: var dropboxToken = "My_token"; $.ajax({ url: "https://content.dropboxapi.com/2/files/get_preview", type: 'POST', cache: false, //dataType: 'json', headers: {…
-
getting dropbox paper link using dropbox api
I like to know whether it is possible to get the preview link for dropbox paper. I have an another question like whethter we can build that path manually. I am writing an api which fetches and show only the dropbox paper of the user. It would be helpfull if you could give me an solution.