-
Request body could not decode input as JSON
Hello! The follow code (qt c++) QUrl url; url.setScheme("https"); url.setHost("api.dropboxapi.com"); url.setPath("/2/file_requests/list_v2"); QUrlQuery params; params.addQueryItem("limit", "1000"); QByteArray qb_params; qb_params.append(params.toString(QUrl::FullyEncoded)); if(checkUrl(url)){ QNetworkRequest request; //…
-
Files Delete batch
dbx.filesListFolder({path: '/app', recursive: true}) .then(response => { let path = response.entries.map(entry => { return {path: entry.path_lower}; }) dbx.filesDeleteBatch({entries: path}) .then(response => { console.log(response); }) }) Hi there, I am trying to delete several files/folders at once, however, when I use…
-
Dropbox Asynchronous API Calls Throwing "ArgumentOutOfRangeException"
I am building a Unity game that needs to utilize file storage of some sort. Because of its examples, documentation, and support, I decided to go with Dropbox API 2.0. I am using the code from Dropbox API-2.0 Examples-SimpleTest to implement an asynchronous file uploader. The file simply uploads a pseudo-randomly named…
-
Remove Shared Folder Invitee
I've been working on Sharing of folders using the API, but can not see how you remove a member who has not added it to their dropbox This is the message in the UI "name@domain.com has not added this to their Dropbox yet" When I try and remove using the RemoveMember I get this error : member_error/no_explicit_access/...…
-
error syncronizing files uploaded by UploadAsync
Hi, I'm using the Dropbox Api to upload some excel files in a specific folder. The upload is successful and from the web I correctly see all the files in the destination account. However, these files are not synchronized in any way by the windows client. I tried both with the app configured in Full access mode and in…
-
Possible bug corrupting file names with certain unicode code points
An rclone user has discovered that sometimes file names appear to get corrupted. See this rclone issue for full details. I managed to reproduce this and capture an HTTP transaction. First here is uploading a 0 length file named "Русский.txt" 2019/10/10 12:40:16 DEBUG : HTTP REQUEST (req 0xc000463900) 2019/10/10 12:40:16…
-
The /upload behavior has been changed ?
Recently, we received many feedbacks from our product users that the filename (use /upload) has become garbled. We found the "path" decode behavior might be changed by dropbox server. For Example: (the current behavior) curl -X POST https://content.dropboxapi.com/2/files/upload \ --header "Authorization: Bearer…
-
File upload error code 500
I am trying to upload a PDF in my javascript file but i get server response error code 500. I also need to find what i have to put in the body to upload the pdf file (using netsuite so i cant use the dropbox-sdk). I am now encoding my pdf from Base64 (that is what it is on my server) and outputEncoding is UTF-8 does this…
-
Using binary utf_8 to upload files give code 500
I am trying to upload a binary utf_8 file with content-type: 'application/octet-stream' I am getting code 500 as response { type: "http.ClientResponse", code: 500, headers: { "Transfer-Encoding": "chunked", "X-Dropbox-Request-Id": "640a364369e1655286244898d330da00", "X-Robots-Tag": "noindex, nofollow, noimageindex",…
-
Ignoring deleted files in the Winforms API
I am using the following code to successfully retrieve all files in a nominated folder: var lfrLlist = DBClient.Files.ListFolderAsync(DBoxFolder); foreach (var item in lfrLlist.Result.Entries.Where(i => i.IsFile)) { dostuff } However I notice that I am getting all files returned, including deleted files. There is a…
-
Switching Dropbox
Hi, I am using API2 with my app to allow users to transfer files to/from dropbox. However, if a user of the app changes dropbox accounts, and they no longer have access to the first dropbox account (So they can't unlink a device) how can they now use the new dropbox account within my app since it is still linked to another…
-
How to solve conflict folder error with Dropbox API
I am using Dropbox API explorer to test the upload of a file before usign the code. I am getting an error when in my opinion all the params are right. request: curl -X POST https://content.dropboxapi.com/2/files/upload \ --header 'Authorization: Bearer aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' \ --header…
-
Invalid Access Token
var name = teamNum + "/" + matchNum + ".json"; var xhr = new XMLHttpRequest(); var filename = name; var file = new File([JSON.stringify(dataset)], filename, { type: "text/json;charset=utf-8" }); xhr.open('POST', 'https://content.dropboxapi.com/2/files/upload'); xhr.setRequestHeader('Authorization', 'Bearer ' +…
-
chunk upload error if only one chunk c#
Hi, I'm using the chunk upload and it works fine. I want to use it for all the files not just for the big ones because it is easy to trace my upload. I'm facing un error when the file is smaller than the chunk: InnerException = {"Cannot access a closed Stream."} Message = "Error while copying content to a stream." my code…
-
How can I list content of sharded folder that has not mounted yet?
How can I list content of sharded folder that has not been mounted yet?
-
Cannot access dropbox account using access Token generated by a different account
I have given an appkey to access a dropbox app, I create an authorize url using this - Uri authorizeUri = DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Token, AppKey, RedirectUri, state: oauth2State); Then once the authorize Uri generated, I used this to generate access Token by browsing the url and providing my…
-
Detect if a file is an image
I am integrating the dropbox API in my application extension which is a filemanager. I need to check if the file saved on the dropbox server is an image or not. Reason why i need is that i cache the whole directory tree on my local system and then user can navigate through the tree easily without sending API calls at every…
-
DropBox Chooser - Possible to preview files and disable upload button?
Hello there, I was wondering if it was possible to disable the Upload functionality on the DropBox Chooser component and whether it's possible to preview files such as images? If not, is there an endpoint in the API that will let me retrieve a list of image preview links in order to create a previewer myself? Thanks,
-
Integrating users' Dropbox files within my SaaS
Hi all Long time Dropbox user, but new to Dropbox integration and the possibilities therein. My company is creating a SaaS platform for catalog and product management. I would like users to be able to share their (selected) Dropbox content with us (in particular images in a specific folder) to enable us to complete various…
-
TypeError: e.clone is not a function
Hi All! I'm working on a VueJS App with Axios library. I just want to authorize my WebApp to access to my DropBox account with OAuth2 but I'm stuck at the beginning because it returns me: TypeError: e.clone is not a function Here is my Vue App code to generate the access token: beforeCreate() { delete…
-
dropbox python sdk
Could anyone help me please? I have a few lines of code in Python: from dropbox import Dropbox dbx = Dropbox(<my_access_token>) dbx.files_download_to_file(dst, src) During executing this code an error is raising up: http_resp: expected requests.models.Response, got <class 'requests.models.Response'> And i do not know what…
-
Dropbox for Business API Access token login process.
Hi There. I have an iOS apllication written in Objective-C. I have successfully integrated Dropbox API in my app and I can upload and download data from dropox even using the Access Token for it. Short code sample to dowload data as per the document as follows: [[client.filesRoutes listFolder:dbPathToIpad]…
-
using dropbox api to read and write json in production - race conditions?
I'm wondering if there will be "race conditions" if I use the dropbox api to read and write json. There are no individual users - authorization is via access token. When a user comes to the site, they'll type in their name and take a quiz. When they click submit at the end of the quiz, the user's name and score will be…
-
To get Download able URl
I have try to use the way I was told in my previous ticket. try{ $client->request('POST', config('providers.providers.dropbox.create_shared_link'), [ 'headers'=> [ 'Authorization'=>'Bearer '.$acc_token, 'Content-Type' => 'application/json', ], 'body'=>json_encode($parameters) ]); }catch(ClientException $exception){ $url =…
-
get_temporary_upload_link returns corrupted link
Hi support, When using the get_temporary_upload_link API i successfully get the upload link, but when a user tries to POST some data to it I get this error: Temporary upload link is corrupted. A new one needs to be generated. This happens every time. Any clues to what I could be missing? Thanks, J
-
Get the folder Size & Date
I am working on a PHP (Yii2) extension that uses DirectoryInterface and we can configure multiple adapters for that interface and DropboxAdapter is one of them i am working on. I need to get the size of the folder using the API , i was looking into the Dropbox API Explorer and couldnt find any thing relative to the folder…
-
File uploading error
Error uploading to Dropbox: Exception in upload: {".tag":"path","reason":{".tag":"conflict","conflict":"file"},"upload_session_id":"AAAAAAAAAQdoevdEEZbGaw"}
-
VB .NET FileUpload using ChunkUpload() error lookup_failed/not_found...
I'm trying to use this code to upload a 12mb file in [Backups] folder. I converted this code from Git dotnet C# example to VB .NET code, but I get Error [File_Not_Found], when I debug this code I noticed that sessionID never returned with value either. Await ChunkUpload("/Backups", "C:/File.png, (Int(ChunkSize))) Private…
-
Thumbnails
Hi, I am using dropbox V2 API (current version from npm 3.0.4). Working with VueJS / Nuxt. And I am trying to get thumbnails from dropbox folder, This console message I am getting (Dropbox-sdk.min.js) TypeError: t.buffer is not a function And this is code I am executing dbx.filesListFolder({ path: '/Website/1. Overview',…
-
How to read a shared folder link in v2?
When I share a dropbox folder by passing a link to someone, the format is something like: https://www.dropbox.com/sh/someid/someotherid?dl=0 Here is the API to read a shared folder: https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_folder_metadata What is the folder id? I tried every part of…