Comments
-
Regarding your "fetch is either a Function or undefined" comment, are you saying that in one case "fetch" was actually a function, but you still got the "fetch is not a function"? That would be unexpected. And that in the other case "fetch" was actually undefined? In that case the error would be expected. Anyway,…
-
It sounds like the web view unfortunately doesn't use a recent/supported browser engine even when the latest Edge is installed. Using web views isn't officially supported for the OAuth flow though anyway, so the flow should be sent through the system browser regardless. If you can't run a listener to handle the redirect…
-
You can find information on the location of Dropbox servers in this help article. You can find information on Dropbox GDPR compliance in this help article. The Dropbox API does have a rate limiting system, but we don't have any specific numbers documented. It is only designed to prevent abuse though, and is accordingly…
-
@"andrewnicols" The team has made this change and it is rolling out now. Hope this helps!
-
Thanks! The LoopbackHost in the sample code as provided is "http://127.0.0.1:52475/", not "https://localhost/", so it does sound like that was a change you made. I would not expect "https://localhost/" to work, as you wouldn't normally have an SSL/TLS certificate for localhost. Please trying switching that back to the…
-
We'll be happy to take a look at this, but we could use some more information. Can you let me know: * What version number of the SDK are you using? * Have you made any modifications to the SimpleTest example? * Do you get any error or output in the console in Visual Studio? * What's the full URL of the page with the "This…
-
Thanks for checking that. It's not clear why this is failing. Can you inspect what your 'fetch' or '_this.fetch' is in fact, if not a function?
-
Apologies for the trouble. It looks like there's an issue with the routing for that page when using a non-English locale. We'll look into it. For now, you should be able to work around that and access https://developers.dropbox.com/dbx-file-access-guide by temporarily switching to the "English (United States)" locale…
-
When uploading a file to Dropbox via the API, you need to specify the path in Dropbox where you want to put the file. I see you're supplying a path 'C:\nirpics\italian-tomato.jpg', but that's a local Windows filesystem path, not a Dropbox path. For example, a Dropbox path would look like '/nirpics/italian-tomato.jpg'.…
-
Specifically, to create a folder in the connected Dropbox account using the .NET SDK, you'd want to use the CreateFolderV2Async method. And to upload files, you can use the UploadAsync method. Those are links to the documentation for each method for more information on the options offered by each. You can also find the…
-
Can you confirm node-fetch is also successfully installed? The 'dropbox' library lists it as a dependency (currently "^2.6.1"). And have you tried not passing in 'fetch' explicitly as noted?
-
Thanks for the note! I can't make any promises myself, but I've sent this along to the team.
-
The /2/files/search_v2 documentation currently says: Recent changes may not immediately be reflected in search results due to a short delay in indexing. Duplicate results may be returned across pages. Some results may not be returned. I can't promise if/when that may be updated, but I'll pass this along as a feature…
-
The page size returned by ListFolderAsync and ListFolderContinueAsync is not guaranteed. Even if there is currently only a relatively small number of folders, the exact number of calls needed may vary, so you need to make sure you're calling back whenever HasMore is true, and checking the contents of each page. Beyond…
-
You need to check HasMore on each result, including from ListFolderContinueAsync, not just the first one. The number of total pages that will be used is not guaranteed. Also, you should use the contents of each returned page of results. In this latest code it looks like you're only iterating through the contents of the…
-
For example, where authUrl is the URL you got from getAuthenticationUrl, you can modify it like this: var url = new URL(authUrl);var urlParams = new URLSearchParams(url.search);urlParams.set('force_reapprove', 'true');url.search = urlParams;console.log(url.href);
-
What version of 'dropbox' did you install, and how did you install it? Also, why is it 'dropbox_new' instead of just 'dropbox'? You should ideally install the latest version, via npm, and then not manually pass in the fetch yourself. See here for a note on…
-
The results from /2/files/search_v2 aren't always exhaustive unfortunately, but we can check on this internally if you'd like. It'd best if you open an API ticket if so, preferably while signed in to the relevant account if possible (if it's one you control). Thanks!
-
Is the ListFolderResult.HasMore returned by ListFolderAsync set to true? If so, you need to call back to ListFolderContinueAsync to retrieve more results. Please refer to the ListFolderAsync documentation for more information.
-
Thanks for writing this up! Yes, this is already open on GitHub so I'll follow up with you there.
-
Apologies for the trouble. It looks like there's an issue with the routing for that page when using a non-English locale. We'll look into it. For now, please try accessing https://www.dropbox.com/lp/developers/reference/oauth-guide while not signed in to Dropbox, such as in an incognito window.
-
I've moved your comment to its own thread since it's no longer related to the original thread. How did you install the Dropbox library, and how are you setting up your client object?
-
That's correct, that parameter isn't currently implemented in the Dropbox JavaScript SDK, but I'll be sure to pass this along as a feature request. You can add it to the /oauth2/authorize URL in your app's own code though, by modifying the URL returned by getAuthenticationUrl.
-
You can get a refresh token via the OAuth app authorization flow and store and re-use that server-side without any further manual user interaction if you wish. As for the short-lived access token you're getting, it sounds like you may be using the "Generate" button. That only enables you to easily get access tokens, not…
-
If you're signed in to an account that has already authorized the app, you may not be explicitly asked to authorize it again, and may instead just be redirected through the flow automatically. Check out the 'force_reapprove' parameter on /oauth2/authorize.
-
@"robertoandrade" Commenting here serves that purpose. Thanks!
-
@"bffy_smmmers" You should use .then and .catch to handle the result/error, like this: dbx.filesGetThumbnail({path: path}) .then(function(response) { console.log("got filesGetThumbnail response:"); console.log(response); console.log("got thumbnail data:"); console.log(response.fileBlob); }) .catch(function(error) {…
-
That's correct, please give it a try and let us know if you run in to any issues or have any questions. Thanks!
-
@"bffy_smmmers" The filesListFolder method doesn't return any file data or shared links. It only returns file metadata. The Dropbox API also doesn't return thumbnail links in general. If you want the original file data, you should call filesDownload. If you want a thumbnail of an image file, you should…
-
Yes, for the offset on the /finish call for a concurrent upload session you should supply the total number of bytes successfully sent for the session previously (i.e., the total length of the file).