Hi. I have made my own app using dropbox api. I am having different json files in my dropbox, my app does the following functionality
1) download specific file
2) edit that file
3) after editing, upload that fille to dropbox on same path using below method
String remoteFileName = localFile.getName();
try (InputStream inputStream = new FileInputStream(localFile)) {
return mDbxClient.files().uploadBuilder(remoteFolderPath + "/" + remoteFileName)
.withMode(WriteMode.OVERWRITE)
.uploadAndFinish(inputStream);
} catch (DbxException | IOException e) {
mException = e;
}
As i do not want to change my file link so i am using
.withMode(WriteMode.OVERWRITE)
as i am fetching my json files from my other apps which contains these file links so i do not want to change my file links. Everything is going well and the links are not changing and updating files successfully. I just want to ask is that a good approach and will it work be in future too? Means editing files without changing links