Greg-DB Dropbox Community Moderator

Comments

  • I'll be happy to help with this, but I'd need some more information. Could you share the code you're using and the full URL of that page showing the error? Feel free to open a ticket here if you'd prefer to share privately. Thanks!
  • Thanks for the report. For reference, can you let me know: * Do you have the "Prevent Cross-Site Tracking" setting in Settings.app > Safari enabled? * Are you placing the Embedder inside an iframe?
  • @"BouzianeAmineLocalfr" No, unfortunately I don't have an update on this feature request.
  • @"MakePerceive" Thanks for the note! This request is still open with the team, but I don't have an update on it.
  • Yes, you could distinguish between shared and not shared folders by checking the metadata, e.g., by using getMetadata. If it's a shared folder, the DBFILESFolderSharingInfo.sharedFolderId in the returned DBFILESFolderMetadata.sharingInfo will be set. It will not be set if it is not a shared folder.
  • No, there isn't another call like that with a string returned directly. You should access the string in the returned GetTemporaryLinkResult.link field. Does accessing that field not work in your environment for some reason? As for viewing the file itself, you may want to check the JavaScript console for the page where the…
  • It looks like your app is registered for one or more "team" scopes, but the account you're trying to log in to isn't a member of a team and so cannot authorize team scopes. If you just want to connect the app to your account, you should remove the team scopes from the app via the Permissions tab on the app's info page on…
  • Using the raw=1 parameter, as documented here, is the right way to get direct access to the file content from a shared link like this. It sounds like that's not working for you though. Are you getting any particular error or unexpected output? Note that the client will need to be able to follow redirects, so if your viewer…
  • I believe you should be able to use the Dropbox library with Newtonsoft.Json 12.0.3. (I just tried and it does seem to work for me.) We did receive a report like this a few years ago, but that was apparently resolved by using a binding redirect like you already have in place. It's unclear why your error message is…
  • Yes, this is the expected error message for this endpoint for a new account with Paper documents as files in the Dropbox filesystem. For reference, from the /2/paper/docs/create documentation: insufficient_permissions Void Your account does not have permissions to perform this action. This may be due to it only having…
  • I recommend reading the Detecting Changes Guide, as it goes over various options for monitoring changes in Dropbox. As in the other threads though, since "received" files aren't included in the user's own Dropbox filesystem, there isn't a good way to monitor those.
  • Are you using /2/files/search or /2/files/search_v2? If you're using /2/files/search, please migrate to /2/files/search_v2 as it should return received/shared files like this.
  • The Dropbox API now offers short-lived access tokens and refresh tokens. You can find more information here: https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens
  • Yes, you can use the "PKCE" flow to process "offline" access without having the app secret. You can find an example of running this with the Java SDK here: https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/authorize/src/main/java/com/dropbox/core/examples/authorize/PkceAuthorize.java
  • You seem to be setting some long timeout values, but other than that there doesn't seem to be anything unusual here. Also, you didn't mention which version number of the Dropbox SDK itself you have, but I recommend upgrading to the latest version (currently v5.5.0), if you aren't already using that. Anyway, since there's…
  • It sounds like this is effectively a duplicate of this thread. Please refer to that for more information.
  • Are you referring to the getEvents/getEventsContinue functionality? That's a way to monitor events occurring on a Dropbox Business team. That log would include shared file events, but it can only be used by Business teams, with the 'events.read' team scope.
  • If you just want a shared link to the folder, you can use /2/sharing/create_shared_link_with_settings. Or, if you want to share the folder itself so it can be added to another account, you can use /2/sharing/share_folder to make it into a shared folder, and /2/sharing/add_folder_member to invite other people to it. The…
  • Have you checked what the value of your 'data' variable is? Does it contain the expected file contents? I notice you aren't checking the 'err' variable for the readFile call, so you may not be catching any errors that are occurring when reading the file. You should update your code to check that.
  • Yes, unfortunately the re-addition of the retained copy can take some time to complete even after the unshare job itself is "complete". To accommodate that, you can delete the contents first if you wish, but it may be more direct to wait until re-addition is complete after the unshare and then delete it. You could do so by…
  • Thanks for the report! This looks like an issue on our side. We'll look into it.
  • [Cross-linking for reference: https://stackoverflow.com/questions/65039727/problem-uploading-converted-image-file-dng-into-dropbox ] When uploading a file to Dropbox via the filesUpload method in the official Dropbox API v2 JavaScript SDK, you need to pass in the file data to upload as the "contents" parameter in…
  • Deleting a shared folder will "unmount" that shared folder, but will not "unshare" it. Unsharing a shared folder will "unmount" and "unshare" it for all users and the owner can choose whether or not the other members should be able to keep a copy, via -unshareFolder:leaveACopy:. The owner will always retain their own copy…
  • The official Dropbox API v2 .NET SDK does support short-lived access tokens and refresh tokens. You can find example code here. The "Generate" button on the app info page on the App Console does not currently offer the ability to generate a refresh token, but I'll pass this along as a feature request. I can't promise if or…
  • Unfortunately the Dropbox API doesn't offer a way to continuously monitor "received" shared files (like webhooks or longpolling), but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Using the listReceivedFiles/listReceivedFilesContinue methods is the right way to see…
  • @"apo1397" "Shared folders" and "shared files" work a bit differently unfortunately. You can't add or "mount" a shared file in an account like you can with a shared folder.
  • Thanks! That's correct, refresh tokens don't expire by themselves (though the user or app can revoke them on demand of course). I'll ask the team to more clearly document this. Anyway, long-lived access tokens are now considered "deprecated", but they will continue operating as they do currently. We'll make an announcement…
  • So is there a way to get the cursor for "shared files" ? No, unfortunately there isn't a way to get a cursor/longpoll for shared files from another account like that exactly, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. It's only possible to monitor changes…
  • I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: * the name and version number of the platform and SDK/library you are using, if any * the steps to reproduce the issue, including relevant code snippet(s), but don't include the access token
  • The Dropbox API does have a rate limiting system that can result in errors like this. In any case that you get one of these the best practice is to retry the request, respecting the Retry-After header if given in the response, or using an exponential back-off, if not. Make sure you're not submitting a large number of…