Greg-DB Dropbox Community Moderator

Comments

  • I see that you are setting a correct value in your code, but it looks like your network client is overriding that setting for some reason. We have seen that sometimes, e.g., where the network client later interprets something else, for instance the way the request body itself is being set, and then overwrites the…
  • It sounds like you're using the Dropbox Chooser with a "direct" link type to access the file data for the chosen file. I see that you already have the Chooser part working, and you're able to retrieve the file data from the returned link. What you do with the data from there is up to you, but note that the Dropbox link…
  • The Dropbox API /2/files/upload endpoint expects the HTTP request's "Content-Type" header to be "application/octet-stream" or "text/plain; charset=dropbox-cors-hack". This error is indicating that your app is instead supplying "application/octet-stream; boundary=e4_HWM6hUnWSMO0XyNdrs9osravFMTxunGA". That extra "boundary"…
  • I see, thanks for clarifying. While you can certainly upload and download files from/to the Dropbox servers in a web app in the browser using the Dropbox API, you may not be able to accomplish the local filesystem write/read operations that you want automatically. That would depend on the local file capabilities of the…
  • SSL/TLS connections do use port 443 on the destination server (the Dropbox API servers in this case). When you say you were watching the traffic on your ports, do you mean you were looking at the source ports? Those wouldn't necessarilly be 443; 443 would be the destination port.
  • I'm not sure I understand your question. Can you elaborate? The Dropbox API operates by having your app communicate directly with the Dropbox servers, not the user's local filesystem. What you do with the result, e.g., the data for a file you downloaded from Dropbox, is up to you. For instance, it sounds like you may want…
  • The Dropbox API requires SSL/TLS for all API calls, and the Java SDK uses SSL/TLS by default. You don't need to configure anything to get it to do so. Can you elaborate on what you mean when you say you've "not been connecting with SSL"?
  • 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 Specifically, to list the contents of a folder, you can…
  • Based on the instructions you linked to, you should click the "Authenticate" button in the Qlik product to begin the Dropbox authorization flow. Have you tried this, and if so, what happened? If something doesn't appear to be working correctly on dropbox.com itself, please let us know the details. Otherwise, if you need…
  • No, unfortunately there isn't a way to retrieve shared links along with the file listing, or a way to get shared links in bulk. I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
  • With the Dropbox Python SDK, you can use the files_download_zip or files_download_zip_to_file method to download an entire folder. If a folder is too big though (see above documentation), you'll need to instead loop through each file in the desired folder and download it individually using files_download…
  • If you just want to use the tutorial's code, even if you want to change it around, I recommend using the Scrimba page itself, as it has the environment all set up for you. You can even change the code and run the app again right there. They have the JavaScript written in index.js, and apparently use webpack to package it…
  • Based on your use of 'require', it sounds like you're trying to run this in Node.js. Is that correct? If so, that would explain the 'document is not defined' error you're seeing, as Node does not offer a 'document' object. The guide was written to run in a browser JavaScript environment, where 'document' is defined…
  • This 'not_found' error indicates that "There is nothing at the given path". That is referring to the remote path on Dropbox for the file you requested to download. For the 'files_download_to_file' method, that's the second parameter, to which you are supplying the path "/picked_image1981016614414776853.jpg" according to…
  • 1. how do i know in what namespace is the user is? You can get any particular user's "root information", i.e., what the namespace ID for their member folder is, and that the namespace ID for their root folder is, by calling GetCurrentAccountAsync. The information will be in the returned FullAccount.RootInfo. 2. i do i know…
  • Apologies, I thought you meant switching to Safari.app, e.g., using the Safari button in the bottom right of SFSafariViewController, during the flow did allow the user to connect your app (not just log in to Dropbox). Anyway, at this point it's unclear what exactly the issue is, so I can't say for sure if inspecting the…
  • Thanks! Unfortunately it looks like the Web Inspector doesn't work in SFSafariViewController, only Safari.app itself, so we don't have a good way to troubleshoot this. Please let us know if you start seeing more of this (or if it does start happening in Safari.app as well), but for now I think using Safari.app as a…
  • Thanks for the report! A JavaScript error could potentially cause this page and operation to fail. To try to track this down, can you try and see if the same issue occurs on the same page in Safari.app itself on that device? If so, please enable and use the Web Inspector to connect to Safari on the device. You can use that…
  • That's correct. Note however that you don't need to re-list everything each time though. Once you retrieve the full listing, you can continue to store and re-use the latest cursor you receive by calling /2/files/list_folder/continue, which will return only what's changed since you received that cursor. Follow the…
  • @"tpot" No, we don't classify third party API apps like that for this limit. A Dropbox user with a free account can still link a third party "syncing" API app even if they already have three official Dropbox apps linked.
  • The "Export member data" functionality on the Dropbox Business Admin Console uses a different mechanism than the API, so there isn't a way to automate that same functionality exactly. If you want to programmatically retrieve information about a team's members though, using the Dropbox Business API, as you've begun here, is…
  • There are technically two different questions here, so I'll address them individually: It sounds like the app you're referring to is "user-linked", that is, each user that wants to use it needs to authorize it to connect to their own account. (As opposed to being "team-linked", which would mean that a team admin could…
  • @"vick86spb" Dropbox does offer an API you can use for programmatically listing, uploading, and downloading Dropbox files and Paper documents, 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…
  • Dropbox offers an API you can use for programmatically 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 For iOS in particular, we offer both…
  • It sounds like you may be referring to the new Dropbox "team space" configuration. The Dropbox API does support operating in the team space. Please read the Namespace Guide, as it covers this in detail. In the .NET SDK in particular, you can set the 'Dropbox-API-Path-Root' header using DropboxClient.WithPathRoot.
  • It looks like you're using the Dropbox Chooser. Can you share the code you're using to configure it? Specifically, are you setting the 'extensions' option? If you are, and aren't allowing the particular file extensions for the files in your account, you won't be able to select them.
  • The Dropbox API /2/files/list_folder[/continue] endpoints do not offer an ordering option, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. The entries returned by /2/files/list_folder[/continue] are returned in the order needed to retrieve an accurate…
  • The Dropbox API /2/files/list_folder[/continue] endpoints do not necessarily return folders before files. There isn't a way to make them return folders first, or folders only, but I'll pass these along as feature requests. I can't promise if or when those might be implemented though. The entries returned…
  • The /2/files/download endpoint is the right endpoint for downloading file data. If the call is successful, the response body will be the file data. There are a number of ways for the call to fail though, e.g., if the path you provide is incorrect. It looks like you're not catching any potential errors on the…
  • @"hypebaestyle" No, unfortunately the Dropbox API still doesn't offer a batch shared link creation endpoint.