Comments
-
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.
-
As long as you're using an app with the "full Dropbox" permission, this call should return all files in the specified path, regardless of extension. You are specifying the path "/CahierFantastique" though. Are you sure the files you're looking for are in that folder in the connected Dropbox account? For example, if they…
-
From a technical perspective, this is possible. The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend…
-
Unfortunately, I can't promise that modification will always work, so I can't officially recommend using it.
-
I don't have an update on the actual feature request here, but one workaround for now is to use the "member file access" feature of the Dropbox Business API to call the /2/users/get_space_usage user endpoint for each team member.
-
Thanks for the feedback! As far as releasing your app, on the Dropbox side of things, please refer to the documentation for production approval: https://www.dropbox.com/developers/reference/devguide#production-approval
-
Dropbox API v2 does expect the Content-Type to match the type of the content in the body, and in the case of content-download endpoints, this should accordingly be missing or empty, as there is no content in the body. Are you perhaps able to explicitly specify the empty string "" using "HTTP_MIMETYPE" as mentioned in the…
-
I can't make any promises or offer a timeline unfortunately, but this is something we are aiming to add. I'll add your vote to the request for it.
-
If you're using Python, we recommend using the official Dropbox Python SDK. In that, you can use the sharing_create_shared_link_with_settings method to create a shared link for any file or folder. Here's an example of using that method: import datetime import dropbox dbx = dropbox.Dropbox("<ACCESS_TOKEN>") expires =…
-
No update on deep links like this. (The URL transformation you're referring to only applies to shared links, as a way to control the behavior of the shared link itself. The officially documented way to do that is found here: https://www.dropbox.com/help/201 )