Comments
-
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…
-
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…
-
That's correct. (For reference, TeamRoutes contains all of the team endpoints.)
-
The API call itself is a user endpoint (as opposed to a team endpoint). User endpoints require a user in general, even if it doesn't matter in this particular case.
-
The same as the other scenario, if you have an account ID and you want information about that account, you'll need to call GetAccountAsync. That is a user endpoint though, so you do need to use AsMember if you have a team client. What do you mean when you say you "no longer have access to the asMember id" though? Can't you…
-
UserInfo.TeamMemberId is documented as "The team member ID of the shared folder member. Only present if SameTeam is true.", meaning it will only be present if "the user is in the same team as current user." The "current user" here is the user you're making the ListFolderMembersAsync call for. (That is, by setting AsMember…
-
Yes, for these calls with the parameters in the header, you need to escape these characters. That is, when you use the “Dropbox-API-Arg” header, you need to make it “HTTP header safe”. This means using JSON-style “\uXXXX” escape codes for the character 0x7F and all non-ASCII characters. Some, but not all,…
-
Hi Gustavo, the output you shared is just the status line. The body of the response should contain a more useful error message. Please check that and share it here if you still need help with it.
-
The Dropbox API doesn't currently offer a way to do this, but we're tracking it as a feature request.
-
There are many factors that can affect connection speed in real world use. For example, all of the Dropbox servers are located in the US. Your connection speed to Dropbox depends on the routing you get between your ISP and our servers, and may be slower than your ISP's rated speeds. Sometimes resetting or retrying your…
-
Are you attempting to upload the same exact data as is contained in the current version? Uploading an identical version of a file doesn't create a new revision.