Greg-DB Dropbox Community Moderator

Comments

  • No, unfortunately you can't get the shared folder ID from a shared link for the folder using the API or from the website. Further, you can't actually guarantee that the user is giving you the correct link anyway, or that you were actually invited to the shared folder for the shared link they gave you. Instead, you might…
  • It sounds like the link was created by a different user than the one you're making these API calls for. In that case, the id on the link will be different than the id of the folder in the user's account. (Technically, this is because the id for the folder in the user's account is for the location in their own account where…
  • @"gilbertwulff" You opened a new thread for your question so I'll follow up there: https://www.dropboxforum.com/t5/API-support/Why-are-the-ids-different/m-p/241094#M13418
  • @"Mike_Wright" That's likely the same issue as discussed earlier in this thread. You can open the file /var/folders/1h/0qd3wyns0md4fq2n5sq6nt0r0000gp/T/carthage-xcodebuild.gkVXhA.log to check the log. For example, in Terminal run: open /var/folders/1h/0qd3wyns0md4fq2n5sq6nt0r0000gp/T/carthage-xcodebuild.gkVXhA.log
  • Is the path correct for their account? They may have a different folder structure. I recommend using list_folder to inspect the folder structure first. (E.g., if you use the "" path, an empty string, you can list the root folder.)
  • Using /2/files/download is the correct way to download file content. I just tried this, and it is working properly for me. Can you double check that you have the correct path? This error should just indicate that there was nothing found at that path for that user. You can use /2/files/list_folder[/continue] to list items.
  • @"JohnWeisz" Thanks for writing this up! I'm sending this along as a feature request to have the Saver return the file path, though unfortunately I can't promise if or when that would be implemented. I'm afraid I also don't have a great workaround to offer. The search method you mentioned may work for you, as you…
  • There isn't a setting for that. If you're a programmer though (since you posted this in the "API support" forum), you could write something to programmatically add these using /2/sharing/list_mountable_folders[/continue] and /2/sharing/mount_folder (or the respective methods in an SDK):…
  • You can now set an approximate limit on the list_folder page size using the "limit" parameter: https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
  • I just wanted to follow up here to let you know that you can now set an approximate limit on the list_folder page size using the "limit" parameter: https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder Hope this helps!
  • I just wanted to follow up here to let you know that you can now set an approximate limit on the list_folder page size using the "limit" parameter: https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder Hope this helps!
  • For reference, I've determined that it's the "Websites" > "Specific Websites Only" (without Dropbox allowed) that causes this. I'll ask the team to look into making this fail with some feedback.
  • No, unfortunately we don't offer anything quite like that. I'll send it along as a feature request, but I can't promise if or when it would be implemented on our side, so if you need for your app I recommend building out the solution you outlined.
  • Yes, it should work the same way for videos.
  • Your code sample uses some custom classes so I can't run it, but this runs fine for me: import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonGenerator; import org.apache.http.HttpEntity; import…
  • No, unfortunately the API doesn't currently offer a non-deprecated way to do links for pending uploads like this, but I'll pass this along as a feature request.
  • Attempting to upload a file or create a folder with a space in the path won't automatically return a conflict just because of the space. There are a number of different cases that can result in conflicts though. You should check the response body for a more specific error. You can look up the error to determine exactly…
  • Yes, both user ID and account ID uniquely identify Dropbox accounts. By the way, you can call getCurrentAccount (or the equivalent method/endpoint in your platform) for each stored account to map from user ID to account ID.
  • There are a few different path formats, and exactly what you should use in each case depends on what you want your app to do, what method you're using, etc. In general though, yes, you can just supply the file ID as the path value.
  • Thanks for the additional information! I'll send this along as a request to optimize this page, but I can't make any promises. We do still highly recommend trying a redirect URI though. The /oauth2/authorize, which is still used even if you use a redirect URI, does also allow the user to switch Dropbox accounts. (In fact,…
  • Thanks for the feedback! It sounds like part of this may be due to how text selection works on different versions of Android itself unfortunately. We recommend using a redirect URI though, so that you can avoid the copy/paste step entirely. You can find information on setting and using a redirect_uri in the documentation:…
  • We always recommend using the latest version of the SDK, but if you're already on 4.3.0, you don't strictly need to update. You may have just originally received the notification because of API calls previously made by an older version of your app using an older SDK. In any case, 4.3.1 doesn't contain any breaking changes…
  • [Cross-linking for reference: https://stackoverflow.com/questions/46043402/php-dropbox-api-v2-show-thumbnail ] First, I would recommend doing a `echo $result;` to make sure the call worked. (You're checking for a curl error, but even if the connection succeeds, you need to check if the Dropbox API call was valid.) Note…
  • We highly recommend using an SDK, but if you don't want to use one, you can download a file via the /2/files/download API v2 HTTPS endpoint directly: https://www.dropbox.com/developers/documentation/http/documentation#files-download There's a curl example included in the documentation there that shows how the API v2 call…
  • You can use instanceof to check if the object is a FileMetadata, FolderMetadata, or DeletedMetadata, e.g., as shown here: https://github.com/dropbox/dropbox-sdk-java/blob/7ecc15cf0f51d6ae2ba5cdb334aac2c2f3474b87/examples/android/src/main/java/com/dropbox/core/examples/android/FilesAdapter.java#L82
  • Thanks! The "Internal Server Error" for a malformed code like that is a known issue. Please do let us know if you get the log for the "<" issue though. That may be a different issue, so we'll need to figure out how to reproduce it. I suspect there's some unexpected value being sent that is causing the call to fail like…
  • It sounds like you want to do something like this: file_metadata = dbx.files_get_metadata(path=file_id, include_media_info=True) if file_metadata.media_info: if file_metadata.media_info.is_metadata(): media_metadata = file_metadata.media_info.get_metadata() print(media_metadata.dimensions) print(media_metadata.location)…
  • There's an example here that defines a task that takes a parameter: https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L239 And then calls it here: https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L94
  • If you're sending the same value as the SDK, please double check that you're connected to the same account/app. It's possible you're using an access token for a different account/app that in fact doesn't have anything at that path. Otherwise, please share the full code we can use to reproduce the issue.