Greg-DB Dropbox Community Moderator

Comments

  • @"buttflattery" Yes, when the API returns an async job like this, you'll need to use the relevant endpoint to periodically check the status of the job until it's done. The Dropbox API doesn't offer webhook functionality for this, or any other way to be automatically notified of async job status changes, but I'll pass this…
  • Thanks for trying that and letting me know. I'm glad to hear that cleared up that exception. There are other ways for uploads like this to fail, so it may not still be a certificate issue. The file would be committed by the `UploadSessionFinishAsync` method. What does that method return for you now? Or, does code execution…
  • What kind of job are you trying to check when you get this? For example, if you're sharing a folder using /2/sharing/share_folder, per the docs you should check on the job with /2/sharing/check_share_job_status. Or, if you're unsharing a folder using /2/sharing/unshare_folder, you need to check on the job…
  • [ Cross-linking for reference: https://stackoverflow.com/questions/58399992/unity-netcore-dropbox-api-2-0-throwing-argumentoutofrangeexception-on-async-d ] I'm afraid we probably can't offer much support on this particular issue, as we don't officially support Unity, and the error appears to be occurring deeper in the…
  • Thanks for the report! For reference, sending non-ASCII characters in HTTP headers is not officially supported, so please make sure you're encoding any non-ASCII characters in headers as documented here: https://www.dropbox.com/developers/reference/json-encoding There was a change on our server stack last week that…
  • If you see the uploaded files on the Dropbox web site, that means that the API part of this is working. That being the case, please check out this help article or contact support for help with the desktop syncing part of this.
  • @"Hexrby" Thanks for the information. If you're still seeing any broken functionality, please let the third party app developer know so that they can contact us with the relevant technical details so we can investigate.
  • @"wen_hsiao" Thanks for the note. @"MReizinho" If you're still seeing any broken functionality, please let the third party app developer know so that they can contact us with the relevant technical details so we can investigate.
  • The "content-upload" style endpoints such as /2/files/upload just expect the binary in the request body so you shouldn't have to re-encode the file data after decoding it from base64. In any case, as far as I can tell from our side, the issue here is with parsing the "Dropbox-API-Arg" header, not the body, so that…
  • This appears to be a duplicate of your other thread, so I'll close this one of favor of that earlier one, and follow up with you there.
  • The /2/sharing/remove_folder_member endpoint (or corresponding native method) would be the right way to remove a member from a folder, whether or not they've mounted it. (Or, if operating on the recipient themselves, /2/sharing/relinquish_folder_membership.) That 'no_explicit_access' error should indicate "The target…
  • Thanks! It looks like the Dropbox API is having trouble parsing this particular request. Can you print out and share the raw HTTP request, including headers? That should help us reproduce and debug this. (Be sure to redact your access token, and the request body if it's private, of course.) Thanks in advance.
  • @"MReizinho" Thanks for the sample! I just gave those two a try though and they both uploaded properly for me just now, even without applying the proper encoding: curl -X POST https://content.dropboxapi.com/2/files/upload \ --header "Authorization: Bearer <ACCESS_TOKEN>" \ --header "Dropbox-API-Arg: {\"path\": \"/CONCURSOS…
  • @"MReizinho" Thanks for the report. I just double checked the issue via the code shared in the original comment on this thread, and it is currently working properly. If something is currently not working as expected, please share the code or steps to reproduce the issue and we'll look into it. Either way, it is important…
  • Thanks for the report! I just gave this a try myself, and it appears to be working properly for me, so we'll need to look into this for you specifically. Please open an API ticket with: * the version number of the SDK you're using * the affected user ID(s) * a few sample file paths/names for deleted files that are being…
  • When uploading data to a Dropbox API "content-upload" style endpoint, such as /2/files/upload, you should send the raw bytes in the request body as an "application/octet-stream". If you're getting a 500 Internal Server Error back, please share a few sample "x-dropbox-request-id" response header values so we can look into…
  • For reference, users can unlink apps from https://www.dropbox.com/account/connected_apps but that just revokes the access tokens for that app, making any further attempts to use the access tokens fail. The app would still need to throw away its copies of the access tokens and prompt the user to relink the app if they want.
  • There was a change on our server stack that affected how we handled HTTP headers without proper encoding. That resulted in malformed file paths/names. We've reverted that change, so that should be working again, but please make sure your headers get encoded properly.
  • I just tried this code and it worked fine for me. Can you clarify what you mean when you say you "definitely have a valid one"? How did you get the access token and how are you verifying that it's still active? While Dropbox API access tokens don't expire by themselves, there a number of different ways that a Dropbox API…
  • Thanks for the report! Sending non-ASCII characters in HTTP headers is not officially supported, so please make sure you're encoding any non-ASCII characters in headers as documented here: https://www.dropbox.com/developers/reference/json-encoding There was a change on our server stack yesterday that affected how we…
  • You can use upload sessions (a.k.a. "chunk upload") to upload small files. Using the normal upload is more efficient for small files though, since you only need to make one call as opposed to two, so I would recommend using that, despite the bit of added code complexity. If you do want to use upload sessions to upload…
  • Some other kinds of changes may work, but I can't guarantee if that's officially supported. I'll ask the team to confirm this and document it explicitly.
  • @"paulrenshaw-tls" We're still tracking this feature request, but I don't have an update on it. The team hasn't implemented this feature.
  • @"buttflattery" While Dropbox API still doesn't offer a way to programmatically upload to file requests, if you can run JavaScript in the browser, you could avoid uploading the file to your own server first, by uploading the file to Dropbox directly from the browser. For instance, you can make the /2/files/upload call…
  • This should be working again. However, please note that sending non-ASCII characters in HTTP headers is not officially supported, so please make sure to encode them as documented.
  • Attempting to upload to an unmounted shared folder will fail. The shared folder needs to be mounted for an app to make changes in it. We should return a better error message in this case though. I'll ask the team to update the API to return a useful error when this is attempted. Thanks!
  • No, the Dropbox Chooser doesn't offer a way to disable the upload functionality, or to preview images. The Dropbox API itself also doesn't offer a way to retrieve preview links. It just offers a way to retrieve preview data directly. I'll pass these along as feature requests, but I can't promise if or when they might be…
  • With an access token for an app folder in a particular account, you can access anything in that app folder. You will need to specify the correct path though. A 'not_found' error indicates that you're not specifying the correct path. You cannot access anything outside that app folder though. I recommend first using…
  • Thanks for reaching out! Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers To get familiar with the API,…
  • The Dropbox account that your app connects to is controlled by the access token the app is using. (Every Dropbox API access token identifies a specific app-account pair.) When the user first authorizes your app, they allow it to access the account they sign in to at that time, and the resulting access token is then always…