Comments
-
Shared links don't offer edit access. If you want to share particular files with specific members with specific access levels, you can use /2/sharing/add_file_member instead: https://www.dropbox.com/developers/documentation/http/documentation#sharing-add_file_member
-
No, there's no maximum size for the link.
-
Thanks for the additional information. The length of the returned link can depend on the length of the original file path (as well as potentially other factors), so we can't guarantee any particular maxmimum length unfortunately. (For reference, mine is also coming out longer than 512 bytes.) So, this may have just been a…
-
It looks like the call to /2/files/get_temporary_link itself is succeeding, since it is showing the retrieved /apitl link. It looks like the log might be cut off unfortunately though. I just retrieved an /apitl link from /2/files/get_temporary_link myself and it seems to be working. Can you get a fresh one from your app…
-
Thanks for following up. This is a good place to ask questions about the API. It sounds like you want to implement the app authorization flow in your app so that arbitrary end-users can connect their own Dropbox accounts to it. To do so, you will need to use the OAuth 2 app authorization flow. (You can find some general…
-
You can use the 'settings' parameter on the /2/sharing/create_shared_link_with_settings endpoint to set the link settings, such as 'requested_visibility' or 'link_password'. (Be sure to click on 'SharedLinkSettings' to see the documentation for those options.) The API v2 Explorer can be helpful for prototyping calls with…
-
[Cross-linking for reference: https://stackoverflow.com/questions/53532632/java-web-project-integration-with-dropbox-api ] It sounds like your question is about getting the input stream for a local file. This isn't directly related to Dropbox itself, so I'm afraid I can't be of much help with this. You may be better suited…
-
There's a full example here of using the official Dropbox API v2 JavaScript SDK to upload a file from an input element that should be helpful: https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/upload/index.html
-
No, unfortunately the Dropbox API doesn't offer a way to check the desktop sync status, but I'll pass this along as a feature request.
-
@"Alexis G.1" There are Business plans available without this limit. A team admin can reach out to sales if they want to review different plan options. You can find more information on this limit here.
-
@"hahmed44" Can you elaborate on how exactly it isn't working? What error are you getting?
-
That "Personal" label isn't an actual folder path. It's just the label shown in the UI to help the user identify the account. When using the API to identify files and folders in the account, you don't need to include "Personal" or "Dropbox". For example, a path to a file would just look like "/Getting Started.pdf". You…
-
Dropbox implements a variety of security features in order to protect our users' accounts. The 'requires_two_factor' result is a valid response that the app should handle. If you're a user of the app, please reach out to the developer of the app for help. If you're the developer of the app and something isn't working…
-
You don't need to know the name of the Business team space root in order to operate in it via the API. Please refer to the Namespace Guide for more information: https://www.dropbox.com/developers/reference/namespace-guide You can get the team's name from the FullAccount.team field returned by /2/users/get_current_account…
-
I'm afraid I don't understand your question. It sounds like you're using Xamarin library though. That's not made by Dropbox, so I recommend referring to the documentation for that library for information.
-
You can create a shared link using the /2/sharing/create_shared_link_with_settings endpoint. You need a Dropbox API app with the app folder or full Dropbox permission, or a Dropbox Business API app with the team member file access permission to use that.
-
Are you using one of the uploadUrl/uploadData/uploadStream methods, and is the file that the user is trying to upload larger than 150 MB? If so, that will fail, and can do so in this manner. For large files, you need to use upload sessions, using the upload session methods instead.
-
To access the file content for a file using the API v2 Java SDK, you should use the download method. That gives you a DbxDownloader which offers a few options for using the file data; downloading it to a local file isn't required. You can find an example Android app for the API v2 Java SDK here. For instance, it uses the…
-
[Cross-linking for reference: https://stackoverflow.com/questions/53499573/problem-with-paths-using-create-shared-link-with-settings ] Getting a shared link for the root is not supported, so supplying a path like "" or "/" is expected to fail like that. To get the shared link for a file, you should supply the full path to…
-
It sounds like you've registered a Dropbox API app with the "app folder" permission. Apps with that permission only have access to the special app folder created for the app, and not any other folders, such as shared folders. If you need to access shared folders, you'll need to register an app with a different permission.…
-
[Cross-linking for reference: https://stackoverflow.com/questions/53488348/image-brokes-when-i-upload-files-with-http ] You're using the "files" parameter in the Python requests library "post" method, which seems to be for "multipart encoding upload". The Dropbox API /2/files/upload endpoint does not use multipart encoding…
-
I'll follow up on this thread once I have an update on this issue.
-
@"KariP" This difference is expected. Note that per the help article for this: "The links may also redirect to *.dropbox.com/s/dl " This is because different browsers have different support for some security features we use, so sometimes we need to fall back to that behavior instead.
-
I can't say if there is or isn't a fix coming soon unfortunately. As a workaround, you can download directly from the shared link using one of the URL parameters documented here. It doesn't provide as much functionality as the API though, such as being able to provide the password for the link, if necessary.
-
To list the contents of a particular path, make sure you implement both ListFolderAsync and ListFolderContinueAsync, as described in the ListFolderAsync documentation. You aren't guaranteed to get everything in one call, so you need to process everything, using both methods, as described there. Once you've retrieved all of…
-
Dropbox does offer an API you can use for uploading and listing files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers I recommend using one of the official SDKs, if possible, and following…
-
@"DavidTeste" When you share a link to a file with someone, they only get access to that file. If you yourself access that link while signed in to your own account, you will see that file in your account, and can browse to the rest of your files. Someone else, not signed in to your account, can't access the rest of your…
-
Thanks for the feedback! Based on your mention of "Flask", it sounds like you're trying to use the Dropbox API from Python. To do so, we recommend using the official Dropbox API v2 Python SDK: https://github.com/dropbox/dropbox-sdk-python We don't have an example for using it with a web framework such as Flask, but you can…
-
Thanks for the report! This is a known issue. We're looking into it, but I don't have a timeline for a fix to share.
-
To upload files using the Dropbox API from Python, we recommend using the official Dropbox API v2 Python SDK: https://github.com/dropbox/dropbox-sdk-python You can find an example of uploading files using it here: https://github.com/dropbox/dropbox-sdk-python/blob/master/example/updown.py#L181