Greg-DB Dropbox Community Moderator

Comments

  • There are a number of ways you could structure your code, but one way, much like your earlier thread, is to trigger the next operation from the previous callback method. Alternatively, you may want to look into the use of 'async' and 'await' in JavaScript.
  • That's correct, the Dropbox API doesn't offer a way to upload multiple files in one call, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. That being the case, you will need to loop through your files and call filesUpload once per file, but only call filesUpload…
  • You just need to create the ScopeRequest object before calling the authorizeFromControllerV2 method. As for the error, make sure you're only calling the authorizeFromControllerV2 method once. In your screenshot, I see you're calling authorizeFromControllerV2, and then are also calling a method of your own called…
  • Attempting to upload multiple files at the same time can cause issues like this. Please refer to the Performance Guide for information on how to manage this.
  • [Cross-linking for reference: https://stackoverflow.com/questions/63544426/how-to-disable-download-from-shared-links-using-dropbox-net ] The Dropbox API doesn't currently offer the ability to set a link to disallow downloads, but I'll pass this along as a feature request. I can't promise if or when that might be…
  • When enabling a new scope for an app, make sure you click the "Submit" at the bottom of the page, or else the changes won't take effect. And, when configuring the app authorization flow, be sure to specify the particular scopes you want to request. When using SwiftyDropbox, that's done by making a ScopeRequest object with…
  • Can you share the code you're using for the upload, as well as the full error/output so I can take a better look at what's happening here? Thanks in advance! 
  • App folders are account-specific, and are only accessible to the user of that account. If another user were to connect the app to their own account, they would get their own distinct app folder. App folders of different users of the same app do not sync with each other. If you want to have other users connect their…
  • Thanks for the report and apologies for the trouble and confusion. I'll check on this with the team and follow up here once I have an update for you.
  • No, the "Authorization" header value should not be JSON. It should be plain text of the format: Bearer ACCESS_TOKEN_HERE You can find an example of what a call to /2/file_requests/count would look like using curl in the documentation. For reference, /2/file_requests/count is an "RPC" style endpoint, so any API call…
  • [Cross-linking for reference: https://github.com/dropbox/dropbox-sdk-python/issues/213 ] Thanks for the report! I'll follow up with you on the GitHub issue.
  • The "No auth function available for given request" error should indicate that the excepted parameters for this call were not supplied correctly in the HTTPS request to /oauth2/token. It looks like you're providing the necessary variables, but they may not be getting sent in the right way. How is the array in that second…
  • The 'missing_scope' error indicates that while the app is permitted to use that scope, the particular access token you're using to make the API call does not have that scope granted. Adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens. That being the case, to…
  • The calls in the JavaScript SDK are asynchronous as you mentioned, so if you have additional operation(s) to perform that depend on the result of an earlier call, you should only perform the additional operation(s) once the necessary earlier ones have completed. You can do so by only triggering the later operations once…
  • This indicates that the app is requesting "team" scopes, which can only be authorized by a team admin, that is, on a "Business" or "work" account. The account you're logging in to isn't on Business team, and so can't authorize these scopes, so you're prompted to switch to a work account instead. If you don't have a work…
  • The response method is given both a "response" and "error" object. If "response" isn't set, you should check "error" to see what went wrong with the call.
  • I believe that's not currently implemented on DropboxTeamClient. I'll ask the team to add that there as well, but I can't promise a timeline for that. I'll follow up here once I have any update on that.
  • Thanks for the report. We'll likely have to check on this specifically. Please open an API ticket here from the account that owns the app so we can follow up with you privately: https://www.dropbox.com/developers/contact It would be helpful if you can include the following details: * the relevant app name * the affected…
  • The Dropbox .NET SDK should automatically do the refresh for you, on every client creation and API call as needed. If you do want to explicitly refresh though, e.g., to get an access token with fewer scopes, you should be able to use RefreshAccessToken to do so, as shown in the example here. Let us know if something isn't…
  • You can manage your app's development user limit from the app's page on the App Console: https://www.dropbox.com/developers/apps You can use enable more user accounts to connect to your app by clicking the "Enable additional users" button, to avoid this error for now, or when ready, you can apply for production using the…
  • Thanks! That's helpful. It looks like the issue here is that the app you're attempting to authorize has team scopes, but the account you're signing in to is not on a team, and so cannot connect an app with team scopes. Accordingly, you're being prompted to sign in again with a team account in order to connect the app.…
  • Thanks for following up. I'm glad to hear you already sorted this out. For reference for anyone else who comes across this, the "Your app is not authorized to use this endpoint" error indicates that the app for the access token you're using to make the call does not have the necessary scope needed for calling that…
  • @"Simon O.8" Thanks for the feedback! That's correct, the Dropbox Embedder doesn't offer the ability to also upload to the embedded folder, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. You may be interested in using it in conjunction with file requests though.…
  • I see you're getting the error "Unexpectedly found nil while unwrapping an Optional value" for that line, presumably regarding the "client" variable. This screenshot doesn't show where that variable would be set or unset, but this error indicates that its value is currently nil. Accordingly, attempting to force unwrap it…
  • No, this isn't in the examples for the SDK. I just wrote that for this thread.
  • The /oauth2/authorize page and login flow should be working for scoped apps. I just tried it and it is working for me. We'll be happy to look into this, but we'll need some more information. First, can you elaborate on what you mean when you say "nothing responds in the browser"? Feel free to provide screenshots or a…
  • No, Dropbox doesn't offer a way to specify a particular order or otherwise request only items modified after a certain date from /2/files/list_folder[/continue], but I'll pass these along as feature requests as well. I can't promise if/when they'd be implemented though.
  • You can make a list of ThumbnailArg and use it to call GetThumbnailBatchAsync like this: var paths = new String[] { "/Photos/1.jpg", "/Photos/2.jpg"}; var thumbnailsArgs = new List<ThumbnailArg> { }; foreach (var path in paths) { thumbnailsArgs.Add(new ThumbnailArg(path: path, format: ThumbnailFormat.Png.Instance)); }…
  • No, you don't need to change your access token or code if you upgrade.
  • No, the Dropbox API doesn't offer compression on file downloads/exports like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.