Discussions
-
CreateSharedLinkWithSettingsErrorException existing URL / name
If the following code throws the exception CreateSharedLinkWithSettingsErrorException How can I get the existing URL and name? SharedLinkMetadata slm = mDbxClient.sharing().createSharedLinkWithSettings(remoteFolderPath + "/" + remoteFileName,…
-
Possible API v2 bug on revoking token
I am using the java sdk example and I noticed that when revoking the token via https://www.dropbox.com/account#security the example is stuck with an error. This is because it continues to use the old access token. Because of that I added code to clear the token on error. So that a new login is offered. The new login,…
-
Sharable link to file using Java API v2
Hello, I am able to upload a file with Java API v2: try (InputStream inputStream = new FileInputStream(localFile)) { return mDbxClient.files().uploadBuilder(remoteFolderPath + "/" + remoteFileName) .withMode(WriteMode.OVERWRITE) .uploadAndFinish(inputStream); } catch (DbxException | IOException e) { mException = e; } How…