Comments
-
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.…
-
In order to make an API call like /2/files/copy, you do need an access token, and to get an access token, you do need to register an app. (The app registration defines what kind of access the resulting access tokens enable.) There's no harm in registering an app though. You can rename or delete it later if you want. The…
-
UploadBuilder gives you an UploadUploader which is documented as DbxUploader<FileMetadata,UploadError,UploadErrorException>. That's definitely unclear/difficult to find if you're looking at uploadAndFinish itself though, so I'll ask the team to clarify that in the documentation. Thanks!
-
R is the response, containing the metadata of the uploaded file. So, for example in this case you could do something like: FileInputStream inputStream = new FileInputStream(localPath); try { FileMetadata fileMetadata = client.files().uploadBuilder(remotePath) .withMode(WriteMode.OVERWRITE) .uploadAndFinish(inputStream);…
-
You can certainly overwrite files using the API. For example, use -uploadData:mode:autorename:clientModified:mute:inputData: and pass in the desired 'mode' parameter, which should be a DBFILESWriteMode. You can use the 'overwrite' mode, but using 'update' with a rev value is safer, as it prevents accidentally overwriting…
-
Unfortunately, this isn't available via API v2, but I'll be sure to pass this along as a feature request. For reference, this is possible via API v1, with the /1/metadata/link, but API v1 is deprecated.
-
It looks like you're uploading the file data as the string "@test.jpg" as opposed to the contents of the file at test.jpg. (According to the documentation for CURLOPT_POSTFIELDS that usage for accessing file contents is deprecated, and only works when supplying the full path.) The resulting uploaded file then won't be the…
-
Tokens can be remotely revoked at any time, so the best way to check if a token is still valid is to just try an API call. The getCurrentAccount call is a good choice for this, as it doesn't have any side effects.
-
Hi Ashok, where exactly are you seeing that message, and is that all of the output shown? It may be helpful to open an API ticket so you can share the actual webhook URI you're trying to set. In any case, when registering a webhook URI, you don't need to specify any parameters beyond the URI itself. There are two parts to…
-
This should be fixed now. Please let us know if you're still seeing any issues.
-
The API doesn't offer a way to control whether or not this appears. This is a new feature that we're working on rolling out. In general, how the user signs in shouldn't affect your app's operation though, as the user can use whatever method to log in they want during the OAuth flow, and the OAuth interface itself isn't…
-
Thanks for trying that out. I can't make any promises, but I'll send this along to the team as a request to allow this on our side.
-
[Cross-linking for reference: https://stackoverflow.com/questions/41273258/read-downloaded-blob-from-dropbox-api-using-http ] Thanks for sharing your solution!
-
Yes, you can download with the shared link. For example, my version in my last post using filesDownload only requires the path, and not shared link.
-
For .url files, the URL information is saved in the file content. You can use /2/files/download to download the file content, and then parse and use it as desired. Using your example, if the file is saved as "Google.url" in your Dropbox root folder, you would supply the path "/Google.url" to download the file using the…
-
The images in your first post here didn't come through, but it sounds like you're referring to using angle brackets in file/folder paths via the Dropbox web site versus the Dropbox API. The Dropbox web site is a bit more restrictive than the API in this regard, e.g., since angle brackets are reserved on Windows. You can…
-
Dropbox API apps can write to team folders. Team folders are not the same as app folders though, and exist outside app folders, so the API app would need the "full Dropbox" (and not "app folder" permission) to do so.
-
Rendering HTML via public/shared links is no longer supported unfortunately. You can find more information here: https://www.dropbox.com/help/16
-
Hi Matthew, the filesDownload method is the right way to directly download a file from a Dropbox account using the JavaScript SDK. What do you have so far and what's giving you trouble in particular? There's a sample of using sharingGetSharedLinkFile available here for reference. When using filesDownload you would pass in…
-
Thanks for the post! It looks like your support ticket is already being handled, so we'll follow up there.
-
The "production approval" section of the developer guide has more detail, but in short, once you link 50 accounts to your app while in development mode, you can either link up to 500, or link more for two more weeks, whichever comes first. If you don't apply for production, your app's ability to link more accounts will be…
-
Hi Tim, unfortunately, no, using the Dropbox Business API doesn't change the incompatibility between shared folders and app folders.