-
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…
-
I need a clean working example of CREATE FOLDER
I tested many examples, but always get a issue about some missing parameter. For a beginer on this, like me, it became frustative. A clean example like "url-dropbox-api- functio+key+secret+token+folderToCreate" in a lite javascript function without any jquery on this. You know?: the clear way to something. Even a static…
-
Download dropbox images to Netlify build folder
I'm trying to retrieve images from my dropbox folder into my Jekyll build on Netlify, but the images are unreadable with the following code. I think that I'm using the wrong conversion for the contents. dbx .filesListFolder({ path: "/images" }) .then(response => { response.entries.forEach(entry => { const { name,…
-
C# android http request error
Hey folks! I use official dropbox package via C# data = await fileMetadata.GetContentAsStringAsync(); It perfectly works on windows but recently on android it started throw following error: Dropbox.Api.BadInputException: Error in call to API function "files/download": Bad HTTP "Content-Type" header:…
-
generate file preview link
How can we generate a preview link for a file and use that link to display the file in our web app? can we also attach link expiry
-
download blob using dropbox Saver
Hi, I am trying to use the dropbox Saver (https://www.dropbox.com/developers/saver) to download a json blob from my desktop (ubuntu). This leads to an error: Url "blob:http://localhost:5000/f58ddb0b-48ed-46ab-87b3-f45a1ee8a7df" uses unsupported scheme Is it possible to download a blob using Saver ? If so, any ideas what I…