Greg-DB Dropbox Community Moderator

Comments

  • This is an OAuth endpoint, so it works a bit differently than the Dropbox API RPC, etc., endpoints. Here's an example of what that /oauth2/token call should look like: curl https://api.dropbox.com/1/oauth2/token \ -d code=<authorization code> \ -d grant_type=authorization_code \ -u <app key>:<app secret> Fill in your…
  • When you say the error was "instance not set to an instance of an object", did you actually mean "Object instance not set to an instance of an object"? (I.e., did you accidentally drop the first word from the error?) If so, that would seem to indicate that you have a null reference. If it's coming from the line you…
  • While we recommend using the official libraries, it's not required. You can always call the Dropbox API HTTPS endpoints directly if you prefer. The documentation covers the requirements for each endpoint, and includes an example of calling using curl, e.g., for /2/files/get_metadata. It looks like you're running in to a…
  • This is the expected behavior. The CreateFolderV2Async method creates a standard folder (private by default, unless it happens to be created inside some other shared folder), not a shared folder. If you intended to share an existing folder, or make a new shared folder, you should use ShareFolderAsync instead. Or, to get…
  • Webhook notifications will only be sent for accounts "connected" or "linked" to the app, so it is expected that you won't get any notifications with your described current set up. Typically, you would have users connect to your via the OAuth app authorization flow. If you only need to connect your own account though, you…
  • We don't have any official documentation on how long you should wait between checking on jobs like this. A few seconds, say 5s, seems reasonable. Whether to use a constant or variable period is also up to you. We don't provide firm guidance on this because how long any particular job takes depends on a few factors, which…
  • @"akashjeez" The original poster here indicated that the issue was that they were attempting to access the folder before the folder existed. In general, the 'not_found' error means that the specified path doesn't exist. If you're having trouble with the API, please open a new thread with the details of the issue.
  • @"praveendhanala" No, unfortunately I don't have an update on this.
  • Thanks for the additional information! I see from the 'response_type=code' that you're using the "code" flow, which means that the string you get back is an "authorization code", not an "access token". You need ot exchange the authorization code for an access token using /oauth2/token. (Alternatively, depending on your…
  • First, to clarify when you say "Errors on bold text", do you mean you get an actual error on that 'If fileMetadata.SharingInfo.ParentSharedFolderId IsNot Nothing' line? If so, please share the full error output. If not, do you mean that the line just doesn't return the value you expect? In that case, what is the…
  • Based on your newer thread, it sounds like you already sorted this out, so I'll follow up with you on your new question there.
  • If you're using the official Dropbox API v2 Java SDK, you can use getSharedLinkFile (or getSharedLinkFileBuilder) to download the file data from a shared link. (Alternatively, you can download directly from a shared link without using the API, via the parameters documented here.)
  • Thanks for writing this up! I can't make any promises, but I'm sending this along as a feature request.
  • Thanks! I see the Dropbox Chooser button isn't being loaded or inserted successfully. Can you check the JavaScript console for any output/error? If something failed, there should be some error or output indicating what.
  • Can you elaborate on what you mean by "the dropbox container does not show in the screen"? Can you share a screenshot or offer steps to reproduce the issue? Also, do you get any error or output in the console when this happens?
  • Based on this code, it looks like you've switched to using this other "Dropbox Uploader" library: https://github.com/jakajancar/DropboxUploader We do not recommend using this. From the its own readme: "Its development was started before Dropbox released their API, and to work, it scrapes their website. So you can and…
  • I'm not sure I understand what you mean when you say "the variable is not taking the file that I selected". Do you mean $uploadedFile is null after the upload method runs? It sounds like the method didn't successfully run. You may need to debug your code more, or double check if you're getting any other output or error. 
  • The Chooser doesn't offer a way to retrieve a blob, but you can download it directly using a GET request, as you mentioned and linked to. Exactly how you do so is up to you, depending on what tools you have available. For example, you may want to use the jQuery get method, or just a XMLHttpRequest. You don't need to supply…
  • If the method is not throwing an error, what is it returning? (I.e., `$uploadedFile` in your code #1, or `$file` in your code #2.)`
  • Closing as a duplicate of: https://www.dropboxforum.com/t5/API-Support-Feedback/Dropbox-API-Integration-in-a-web-application/m-p/303466 
  • From the code you provided, it looks like you're using this third party library: https://github.com/kunalvarma05/dropbox-php-sdk We can't provide support for third party libaries, as we didn't make them, but we'll be happy to help with any issues you're having with the Dropbox API itself. Whenever you make a Dropbox API…
  • If you see the "No access - App folder deleted" text, that should indicate that the app doesn't have access because the app folder has been deleted. Did you delete the app folder and try to recreate it manually by any chance? Making a new folder with the same name/path manually won't automatically connect the app. In any…
  • Dropbox does offer an API you can use to operate on files in your Dropbox account, such as to move them between folders as desired. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers For moving files or folders in…
  • I don't have more specific information on how/when Dropbox product management makes decisions around features like this. Apologies I can't be more helpful in that regard!
  • It sounds like your team is using the "team space" configuration. You can access the team root via the API. To do so, you'll need to use the namespace IDs to specify which area you want to access. I recommend reading the Namespace Guide, which covers this in detail. You can find information on setting this in the .NET SDK…
  • @"titovnikita" This issue is open with engineering, but I don't have an update on it from them yet unfortunately. I'll follow up here once I do.
  • We do take into account the number of external feature requests like this when deciding on what to work on, and we appreciate when developers such as yourselves take the time to share feedback like this.
  • 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 of the platform and SDK/library you are using, if any - the full text of any error or unexpected output - the steps to reproduce the issue, including relevant code…
  • [Cross-linking for reference: https://stackoverflow.com/questions/52756880/error-400-while-using-dropbox-chooser-api?noredirect=1#comment92756867_52756880 ] @"jasskcet" No, app keys are not considered secret or sensitive, so it's acceptable (and necessary) to expose them to end-users. Use of your app key with the Dropbox…
  • Est-ce le code exact que vous utilisez? Je viens d'essayer, et il n'a pas produit d'erreur 415 pour moi. Je recommande d'inspecter si possible la requête réseau réelle, par exemple en utilisant l'inspecteur de réseau dans les outils de développement de votre navigateur, dans le cas où le 415 était en réalité destiné à une…