Comments
-
The "path" parameter you specify is the path in the Dropbox account where you want to put the uploaded file. If your app uses the "app folder" permission, that path will be used relative to the app folder. The "path/conflict/file" error indicates that there's already something at the specified path, so the upload couldn't…
-
I don't believe we have a full example of that, but it would look like this: client.files().listFolderBuilder(path).withRecursive(true).start();
-
You can use listFolderBuilder to get a ListFolderBuilder you can use and call withRecursive(true) to do a recursive listing if you wish. That would include nested items. Or, to just list the contents of particular nested folder when needed, you can use listFolder/listFolderContinue again with the path of the folder you…
-
Yes, using the Dropbox Java SDK, you can get the list of files/folders under any particular path using the listFolder/listFolderContinue methods. The result will contain a list of Metadata objects, from which you can get the paths for the referenced items. There's an example of calling listFolder here. As shown there, to…
-
@"aviennas" Thanks for the additional feedback!
-
No, unfortunately Dropbox doesn't offer a way to programmatically set Chooser/Saver domains like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
We have an example of using upload sessions in the JavaScript SDK here: https://github.com/dropbox/dropbox-sdk-js/blob/b2353edeb221ec17b8e70a1d8fd4799e2f1f031d/examples/javascript/upload/index.html#L63
-
@"jlgarnier" The Dropbox API should only list files that are in the connected account. A few possibilities come to mind here: * You may be looking in the wrong location for these files. For example, the Joplin app uses the "app folder" permission, so it would be operating only in the special app folder made for it,…
-
That 'restricted_content' error indicates that the file has been flagged as restricted (e.g., for malware, DMCA, etc.). If you believe that the file has been incorrectly flagged, you can contact support to ask them to review it: https://www.dropbox.com/support
-
Can you confirm you followed all of the instructions for configuring your project and setting up the authorization flow as documented here? For example, make sure you have your "CFBundleURLSchemes" configured with your "db-APPKEYHERE" URL scheme, and that you have the code in place to handle the redirect. Also, do you get…
-
The /2/file_requests/get endpoint is for retrieving the information about a 'file request', not a file itself. (A "file request" is a way to receive files from other people.) To get the data for a particular file, you should instead call /2/files/download.
-
To create a shared link via the Dropbox API, you should use the /2/sharing/create_shared_link_with_settings endpoint: https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings That allows you to specify a file or folder and returns a shared link for it. You can then use…
-
The Dropbox API v2 JavaScript SDK does not offer a way to check the progress on a transfer unfortunately, e.g., for filesUpload. I'll pass this along as a feature request to the team but I can't promise if or when that might be implemented. If you're using "upload sessions" though, where you upload files in pieces, you can…
-
I see, thanks for the additional information. Unfortunately, I don't believe that's something we'd be able to support, as the 'dl=1' option is intentionally only configured for downloading, not playing in the browser as Safari is attempting to do.
-
Yes, that endpoint expects the full shared link, not the short version. By the way, it sounds like you're using the /2/sharing/create_shared_link endpoint to get that short URL. That endpoint is deprecated, so you should use the /2/sharing/create_shared_link_with_settings replacement instead. That doesn't offer the ability…
-
No, unfortunately the Dropbox API doesn't offer a way to get package information like this. I'll pass this along as a feature request for a better way to handle these, but I can't promise if or when that might be implemented.
-
To retrieve the account ID, you should call the getCurrentAccount method. There's an example of doing so here. You can make that call wherever/whenever you need in your app, e.g., when you need to get the account ID when first storing the access token, etc.
-
That returns the user ID from the authorization flow. The user ID does identify the particular Dropbox account and is stable for the account, so you can technically use that. Preferably though, you should use Account.accountId as returned by getCurrentAccount. That also uniquely identifies the Dropbox account and is…
-
I see, thanks for clarifying. If you do want the download behavior, using "dl=1" is correct. I just tried this myself with a Dropbox shared link to a .mp3 file with "dl=1" in Safari on an iPhone running iOS 13.3.1 though, and upon accessing the link Safari prompts me to choose between "View" and "Download". Choosing…
-
Can you clarify if you're trying to install SwiftyDropbox, and if so, which version? The latest version is 5.1.0, and you can find the installation instructions here. Please follow those, and share what error(s) you're getting if that's not working for you. (That should also install the necessary Alamofire dependency for…
-
I'm glad to hear you already got this working. For reference, the 'email_not_verified' error does mean that the connected account does not have its email address verified, so some functionality won't be available. That can be resolved by verifying the email address on the account, as it sounds like you've done.
-
The Dropbox Python SDK does use the requests library. You can find where it's imported and used here and here. The trusted certificates are loaded from this file at this point in the code. You could potentially modify that file or code, though I should reiterate again that as a matter of security we do not recommend doing…
-
@"Ronaldo77" That line of code would disable verification of the SSL/TLS certificate, which should not be relevant to the original discussion here. In any case, we do not recommend disabling the SSL/TLS certificate verification, as a matter of security.
-
By "it does appear that if I tried to share with an incorrect email it might not work", are you referring to the 'email_unverified' or 'invalid_email' errors, perhaps? Those actually just refer to the connected user's account (i.e., for the access token you're using) not being verified, or the email address value for the…
-
It sounds like this use case would be better served by the 'raw=1' option instead of 'dl=1'. Can you try switching to that and let me know if that doesn't help? Thanks.
-
The Dropbox API doesn't offer a way to list all known contacts, so you'd need to find the account by listing the members of the relevant existing shared folder(s). The recipient can still accept the invitation if they happen to use a different email address on their Dropbox account.
-
If you don't already have a connection to the other user in Dropbox, there isn't a way to retrieve it. Instead, you can share it with them via their email address. To give them access to mount and edit the folder, you would first share the folder, then add them to the folder. In that second step, you can specify the…
-
I don't believe the Dropbox Python SDK offers such an option, but I either way I would strongly recommend against disabling certificate checking anyway.
-
Thanks for following up. It's possible it is incorrectly marked, so feel free to contact support for review it.
-
That's correct, that's the endpoint you should use for exporting the content of files that can't be downloaded in the normal way, like cloud-hosted docs such as Google Docs. That 'path/restricted_content/' error indicates that the file you're requesting has been flagged as restricted (e.g., for malware, DMCA, etc.). If you…