Comments
-
Can you share the steps you took, and the full output/a screenshot showing the issue so we can make sure we follow exactly what you're seeing? Thanks in advance!
-
Thanks for sharing! Yes, this looks good. For reference, there's a similar example here: https://stackoverflow.com/documentation/dropbox-api/408/downloading-a-file/1351/downloading-a-file-with-every-error-case-handled-using-the-swiftydropbox-library#t=201701031839136724815 (It was written for an earlier version of the SDK…
-
The type of file shouldn't really matter. This works for me: let data = try? Data(contentsOf: URL(fileURLWithPath: "/local/path/to/test.pdf")) if (data != nil) { DropboxClientsManager.authorizedClient!.files.upload(path: "/test.pdf", input: data!) .response { response, error in if let response = response { print(response)…
-
This is handled automatically, and is not exposed/controllable via the API.
-
The API doesn't distinguish between files and folders in DeletedMetadata, but I'll be sure to pass this along as a feature request. For reference though, a deleted entry just indicates that whatever was at that path was deleted, and at different points in time, a single path could have been either a file and folder. You…
-
Ideally, we'll be able to solve the issue on our side so you don't need to implement the workarounds mentioned in your StackOverflow post, but I unfortunately don't have an update on a fix right now.
-
Hi Mark, you can use the move method to rename files or folders.
-
Apologies, this is still ****** to follow without seeing the actual API call code, that is, seeing what API endpoints you're calling, and seeing the output you're getting, along with an explanation of the output you're expecting to get. For example, are you only calling the /files/create_folder endpoint? That endpoint only…
-
Thanks for the post! That's correct, the Paper API doesn't offer a way to create/upload documents. I can't make any promises, but I'm sending this along as a feature request.
-
I'm not sure I follow. Can you share the code and output showing this? Thanks in advance!
-
When making an API call like this that takes no parameters, you can do it one of two ways: * Don't supply any request body, and accordingly omit the Content-Type request header. * Supply just "null" as the request body, and submit the Content-Type request header as "application/json". As you have it, you're submitting a…
-
To clarify, the Dropbox Business API actually also has both v1 and v2 versions. It sounds like you may be talking about the difference between the Dropbox Business API and the Dropbox API though. In short, the Dropbox API offers functionality available to any kind of Dropbox account (Basic, Pro, or Business), such as…
-
The difference in response format, of JSON versus text, is expected in these different cases. If the ID has the right format, the API will look it up, and return an error if it isn't found. If the ID doesn't have the right format, e.g., it's the wrong length, it will fail validation, and the API won't bother trying to look…
-
The documentation for /2/files/upload_session/append_v2 describes the close parameter as: "close Boolean If true, the current session will be closed, at which point you won't be able to call upload_session/append_v2 anymore with the current session. The default for this field is False." That is, you can't add more data to…
-
The specifics will depend on your system, what language, what library/SDK, if any, you're using etc., but in general you'd use the local path you access the local file using whatever file access API your programming language supplies, and put the read data in the upload API call.
-
Thanks for elaborating! I don't have a good solution for you unfortunately, but I've sent this along a feature request, and the context is useful.
-
The Dropbox webhook challenge string doesn't contain a BOM, so the Dropbox webhooks service doesn't expect one in the echoed string. That being the case, it does look like something on your side is adding it. Unfortunately, that sounds like an issue with Node or your code itself, so I'm afraid I can't offer much insight.…
-
When you upload a file to Dropbox using the Dropbox API, it will create the file in Dropbox, if it doesn't already exist. (If it does already exist, the API can also update the file with the new data.) That is unrelated to the state of your local filesystem. When making the upload API call, you can supply data from…
-
Thanks for confirming that. I'm glad to hear this is sorted out. The OAuth endpoints are a little different than the API endpoints, so I'll ask the team to clarify the documentation at least.
-
Hi Douglas, it sounds like you have this right. When uploading a file, parent folders are automatically created if they don't already exist, so you don't need to explicitly create them first. The create_folder functionality exists so that you can create folders explicitly if you need them, without uploading any files. I'm…
-
I can't seem to find if/when we accepted JSON on this endpoint. Are you sure this previously worked with that content type? In any case, x-www-form-urlencoded is the right way to call this. Is that working for you?
-
Thanks for clarifying. Can you elaborate on your use case then? Are you trying to do this programmatically? If so, using the API is the only good/official interface for interacting with Dropbox resources like this, but either way, there isn't a supported way to programmatically get the link for a subfolder from the link…
-
Different account types may get different rate limits for this, but the documentation doesn't include any specific numbers, so I'm afraid I can't make any guarantees.
-
The /download call returns the raw binary data for the file. If it's an image and you won't to display it in an image tag, you'll need to either save it somewhere where you can serve it from a URL, or encode and format it as a base64 data URI, or perhaps using some of the newer blob/file functionality in modern browsers.
-
No, unfortunately I don't have another recommendation. I've sent this along as a feature request.
-
Thanks for the report! The request payload for /oauth2/token is expected to be delivered with a content type of "application/x-www-form-urlencoded", per RFC 6749 Section 4.1.3. It's possible we may have also been accepting "application/json" though. We'll look into it, but in the meantime, you can switch…
-
That woud look like this: NSString *path = ... NSData *data = ... DBFILESWriteMode *mode = [[DBFILESWriteMode alloc] initWithOverwrite]; [[client.filesRoutes uploadData:path mode:mode autorename:false clientModified:nil mute:false inputData:data] response:^(DBFILESFileMetadata *metadata, DBFILESUploadError *routeError,…
-
The specific AddFolderMemberError.RateLimit error is not about overall API call rate limiting, but specifically about the rate at which the user is inviting shared folder members. From the documentation linked above: "The current user has hit the limit of invites they can send per day. Try again in 24 hours."
-
Hi Elina, the Dropbox Java SDK doesn't currently offer transfer progress information like this, but I'll be sure to pass this along as a feature request. You can find more information, including a possible workaround, here: https://github.com/dropbox/dropbox-sdk-java/issues/66
-
1. I'm not sure what part of my message are you referring to when you say "admins team", as I didn't use that exact term, but a Dropbox for Business team is a paid level of Dropbox service built for businesses. Some members of these teams are designated as "admins" and have additional abilities that other members don't. 2.…