Comments
-
@"Rephoto" If you wish to optimize your upload process, please refer to the Performance Guide: https://developers.dropbox.com/dbx-performance-guide That offers some ways you may be able to improve your effective overall upload speed. For example, there are batching and parallelization features you can use. For instance, as…
-
Thanks for sharing the additional information. It looks like this is related to you trying to start multiple tasks within the loop without awaiting them, leading to the stream being closed (due to the iteration continuing and moving on to the next piece of the file) before it can be used. Exactly how you structure your…
-
The /2/files/upload endpoint is a "content-upload" style endpoint, meaning that it expects the raw bytes of the file data in the HTTPS request body (with corresponding "application/octet-stream" type, as you have). Exactly how you retrieve that data and configure your HTTPS client to send it like that is up to you. Please…
-
What line is that occurring on? Please print the full exception and stack trace for reference.
-
@"Gags" For help with the configuration of your team, please contact support from an admin account on the team.
-
@"b_brown" The team has rolled out a fix for this. Please try again and let me know if you're still seeing any issues. Thanks!
-
If you need long-term access, you'll need to use the OAuth app authorization flow, but this only needs to be done once per account. It is not possible to fully automate the OAuth process where the user chooses to authorize the app and the app then receives the resulting access token and optional refresh token. This needs…
-
@"Gags" It looks like Здравко already helpfully answered your questions, but let us know if you still need help with anything.
-
@"b_brown" This is still open with the team, but I don't have an update yet. I'll follow up here once I have some news.
-
@"toki4004" Здравко is correct; the /2/file_requests/get endpoint is for getting information about a "file request" not an actual file. You should use the /2/files/download endpoint instead to download the contents of a file.
-
No, unfortunately the Dropbox API doesn't currently expose the ability to set those folder overviews programmatically, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
@"tcnolan7" The team is still working on some aspects of this issue, but yes the file download functionality in particular should be working now.
-
@"Здравко" As Здравко said, the 'download_path' should refer to a local file path where you want to save the file; not a folder. And as for the 'path/not_found' error, as they said that's referring to the path on Dropbox itself. A "path/not_found" Dropbox API error indicates that the API call failed because there was…
-
This looks correct. I also just tried this all myself and it worked successfully for me. (Setting refreshToken on dropbox.Dropbox and also calling setRefreshToken is redundant, but it shouldn't cause this issue as long as you're using the correct value.) Please double check that you have copied in all of the values…
-
@"baltasarq" The account that gets connected is determined by which account you're signed in to in your browser when you authorize the app. If you want to use a different account, you'll need to switch to that account in your browser and process the authorization flow again.
-
I'll be happy to look into this further, but I'll need some more information. Please reply with: * the version number of the JavaScript SDK you're using * the steps to reproduce the issue, including the actual code, but don't include any access token, refresh token, or app key/secret themselves * the full text of the…
-
In that case, please double check that you're supplying the correct credentials as outlined in my previous message, e.g., make sure you're using the correct app key/secret for that particular refresh token, etc.
-
In the code you shared here, you're not supplying the refresh token to the "client" object that you're attempting the upload with. You're supplying the refresh token to a different "dbx" object". Make sure you're giving the refresh token to the correct Dropbox object, e.g., your "client" variable. Also, note that the…
-
@"baltasarq" Thanks for the feedback! The startOAuth2PKCE method is defined here. If you're not seeing that method in your installation, please make sure you're using a recent version of the SDK. The latest version is currently v5.4.5. Also, the Android example here is written in Kotlin, e.g., see the DropboxOAuthUtil.kt…
-
@"baltasarq" Здравко is correct; the Dropbox SDKs, including the Dropbox Java SDK, themselves call the Dropbox HTTP API. You can certainly just use the Dropbox Java SDK though. The second half of my previous message contains links specific to the Dropbox Java SDK, so refer to those for information on how to use that.…
-
@"Inna_13" I see you're referring to how the user limit works while an app is in development status, as documented here. While in development status, an app will be "frozen", meaning that no more users can connect it, once it reaches 500 connected users, or two weeks after it reaches 50 connected users, whichever comes…
-
[Cross-linking for reference: https://stackoverflow.com/questions/77059304/dropbox-java-client-for-android-how-to-refresh-token ] Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access…
-
@"isaacfink" In addition to the one Здравко shared, you can find an example of running it manually using curl in the blog post here, and an example of running it in the JavaScript SDK here.
-
Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find more information on this migration here. Apps can still get long-term access by requesting "offline" access…
-
The Dropbox API/SDK doesn't return file creation dates (only modified dates), but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. The "Date created", "Date taken", and "Date uploaded" values you're referring to are from metadata embedded in image, such as using Exif.…
-
Thanks for following up. I don't have a documented guarantee to share on exactly what navigation/pagination controls would be expected for any given file type, but this issue is open with the team and I'll follow up here once I have any news to share.
-
@"bob-locascio" For reference, while you can get the file ID for a file using its path, that's not the only way to do so. You can get the file ID for a file from any FileMetadata object for the file; FileMetadata objects are used in a number of places on the Dropbox API. For example, you can use…
-
Thanks for the report! I can reproduce the issue of apparently not being able to navigate to other pages in a multi-page .pptx document. We'll look into it and I'll follow up here with any updates on that. I'm not sure I understand what you mean when you say "it is also breaking the format and embedding it like a Pdf…
-
For both of your questions, to list the contents of any particular folder or namespace, whether or not it is shared, you should use the /2/files/list_folder and /2/files/list_folder/continue endpoints. You can start by passing in the empty string "" as the "path" parameter value to list the contents of the root for the…
-
The team has pushed out a change that should fix this. Please let us know if you're still seeing any instances of this now. Thanks!