Comments
-
Exactly what would happen if you use the Dropbox API upload functionality to upload files to paths that already exist will depend on the particular parameters you use when uploading. You can find information on the different parameters and the behaviors they will yield in the documentation, such as for the /2/files/upload…
-
There are a number of variables that will affect overall performance of transfers like this, some of which can't be controlled unfortunately. There are some other options that may be helpful though, depending on the specifics of your scenario. If the files do already exist in the Dropbox account and you just need to make…
-
Thanks for writing this up! Regarding the app folder creation: the actual app folder in a connected account does not get created until the account is connected to the app. That is, just creating the app registration won't automatically create the app folder itself. That occurred when you generated a token because that was…
-
You're trying to cast the ListFolderResult itself, which isn't a type of Metadata. You should instead be casting each Metadata object in the ListFolderResult.entries array.
-
This should be fixed now. Please try again and let me know if you're still seeing any issues. Thanks again for the report!
-
This looks like an issue on our side. We're looking into it. I'll follow up here once I have an update on this for you.
-
To check if a particular entry is a file or a folder, you can check the type of the entry, such as by switching on it as shown in this example.
-
Any access token that starts with "sl." is "short-lived", meaning that it will expire after four hours. Did you perhaps change the expiration setting after retrieving the access token? That wouldn't retroactively affect existing access tokens. You can certainly create and use a "Full Dropbox" app from a non-team account.…
-
There are a number of reasons you can get a rate limiting response, e.g., due to the number of calls your app is making, or for other reasons such as other activity on the account or general Dropbox service issues. In any case that you do get one of these though, the best practice is to retry the request, respecting the…
-
If you want to access subfolders as well when listing a folder, you can set recursive:true when calling listFolder. That will make the results include nested entries as well. Alternatively you can call separately to specifically list a particular subfolder, by passing in the path. To do so, get and pass in the…
-
The Dropbox API does not extract and return media information such as artwork and duration for audio files, 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, to access this information, you'd need to download the file and extract the desired…
-
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…