Greg-DB Dropbox Community Moderator

Comments

  • Thanks for the report! Yes, this is a known issue that the team is investigating.
  • Also, one alternative to using the Chooser entirely may be to use the iOS UIDocumentPickerViewController functionality, for which the official Dropbox iOS app supports the modes: UIDocumentPickerModeImport UIDocumentPickerModeExportToService I believe since these work using app extensions, there isn't technically an app…
  • Thanks for following up. Unfortunately, I don't believe it's possible for an app (either ours or yours) to control/prevent the display of that link.
  • Are you referring to the "Back to" link in the upper left of like screen shown here? http://www.macworld.com/article/2987105/ios/ios-9s-back-to-button-helps-you-master-multitasking.html http://www.cnet.com/how-to/how-to-use-ios-9s-fancy-back-button/# That's just a feature of iOS 9. It comes up because the Chooser is built…
  • Hi Matt, it sounds like you already have the right idea here. You should use the Dropbox API concepts to keep track of this, instead of HTTP caching rules. That is, you can use the "rev" value, e.g., from /metadata or /delta, to check if the contents have changed. If the rev value hasn't changed for a file, you know the…
  • Hi Christian, there's a discussion with more information on this here: https://github.com/dropbox/dropbox-sdk-java/issues/44
  • Richard's correct, your app should never be directly handling the user's email address and password. You, as the developer, just need to register your app to get an app key and secret once. Those should be included in the app. This step can't be done programmatically, but only needs to be done once per app anyway. Your app…
  • Thanks for following up. Can you give me a better idea of how much/often you see this so we can look into it? Specifically, does it happen consistently, or only sporadically, and in either case, when you are seeing failures, what percent of your API calls fail? Thanks in advance! 
  • Since it sounds like the NetworkIOException problem is intermittent, is it possible it's related to issues with your network connection. For example, are you able to reproduce the issue when using a different Internet connection?
  • Thanks for clarifying. It sounds like you're talking about using listFolder for API v2, which returns a Metadata object, as opposed to getMetadataWithChildren for API v1. In that case, my reply does apply. Check out this sample for an example of how you can tell between files and folders when you have a Metadata object:…
  • Hi Yusuf, I'm glad to hear you got that working already. I'm not sure if I understand your follow up question though, can you elaborate? If you mean you need to distinguish between files and folders given a Metadata object, you can do so by checking the class. FileMetadata, FolderMetadata, and DeletedMetadata are…
  • Jai, did you try to log in multiple times by any chance? Can you share a screenshot so I can get better context on where/when you're seeing this? Thanks in advance! 
  • The "canOpenURL" line is fine, as that's just reporting on some new behavior in iOS 9. The error is coming back as "(null)", so that indicates you're already configured properly for that. Can you post some sample code and full output/screenshot for the "Too many attempts" issue though?
  • If you mean you want to set custom metadata for files that you could read via the API without downloading the file content, then no, this isn't currently possible, but I'll be sure to pass this along as a feature request. If you mean you want to set metadata specific to certain file types though, that would be stored in…
    in metadata Comment by Greg-DB April 2016
  • There is some basic functionality, i.e., downloading the file or folder, possible using just the shared link. Refer to this help article for more information: https://www.dropbox.com/help/201 For anything more advanced than that, you will need to use the API calls, which do require an access token.
  • If you can, we recommend using the .NET SDK for C# projects: https://www.dropbox.com/developers/documentation/dotnet In that SDK, the respective methods are: https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingRoutes_GetSharedLinkMetadataAsync_1.htm…
  • Hi Gabriel, it sounds like your question is more about setting up your app and environment itself, and not yet about using the Dropbox API. That being the case, I'm afraid I can't offer much help. How you set up your environment and app, e.g., what pattern, like MVC, you use, are up to you. Once you do have your app…
  • The sharing_info property is only set "if this file is contained in a shared folder". If it isn't set, that means the file isn't in a shared folder, so yes, that user would have to be the modifier. And no, unfortunately API v2 doesn't currently offer modified time for folders, but I'll be sure to pass this along as a…
  • Yes, if the user has already authorized the app previously, the app authorization page may automatically redirect them to the specified redirect URI. In any case, it does seem the timeout is occurring on your site https://temp.tilecleaners.com.au, so I'm afraid I can't offer much more help from our side. You'll need to…
  • Are you getting this error after the user authorizes the app and Dropbox redirects them to the URI specified in the redirect_uri? If so, it sounds like the error is occurring on your site, so I would check the logs for your server to see what the issue is (and that the URI itself is correct to begin with).
  • This looks like a continuation of your question from your other thread. As I mentioned there, this part isn't about Dropbox, so I can't offer any help. Also, this probably isn't the best forum for getting help for questions like this. You may want to try StackOverflow, or a forum for .NET.
  • I'm not sure I understand your question. Your app should use your "app key", also known as "client ID", to get the authorization URL, and send the user there. The user then gets an "authorization code" from Dropbox, and gives it back to your app. Your app should then exchange that authorization code for the access token…
  • What line is producing that error? Can you add some logic and logging to check the value for the token you're sending up? Based on the error, it appears you're sending up the string './', which isn't a valid token.
  • Yes, please update to 3.2.1 for a fix for this.
  • [Cross-linking for reference: https://stackoverflow.com/questions/37949439/dropbox-python-sdk-v2-sharing-list-shared-links-repeatedly-returns-the-sam ] Thanks for the report! This is a known issue, but I don't have a timeline for a fix right now.
  • Richard's correct, the Dropbox API doesn't currently offer bulk/batch operations like this, but I'll be sure to pass this along as a feature request. That being the case, you'd need to call the relevant method/endpoint, e.g., /files/get_temporary_link or /files/get_thumbnail, once for each desired file.
  • I'm not sure I follow. This question was originally about downloading files, not uploading, correct? Can you share some sample code that isn't working as expected? If you're asking why /var/mobile/Containers/Data/Application/29A8C8C7-63F4-4EA0-82AB-846DE72C9859/Documents already existed, that seems reasonable, since that's…
  • The destination path you supply to the loadFile method tells the SDK where to save the file locally. If there's something already at that path, it will fail, so you should supply a path where there isn't already something saved. Including the file name at the end helps avoid conflicts, e.g., in the case of the error you…
  • To borrow Chris's example, instead of: /var/mobile/Containers/Data/Application/29A8C8C7-63F4-4EA0-82AB-846DE72C9859/Documents you would need: /var/mobile/Containers/Data/Application/29A8C8C7-63F4-4EA0-82AB-846DE72C9859/Documents/enumrec.pdf That is, the second one includes the "enumrec.pdf" filename at the end. To get…
  • [Cross-linking for reference: https://stackoverflow.com/questions/36344171/nscocoaerrordomain-code-516-the-file-couldn-t-be-saved-because-a-file-with-the and https://github.com/dropbox/SwiftyDropbox/issues/69 ] Hi Mariam, Chris's comments on the GitHub issue are right. You seem to be supplying only the path to a local…