Fix duplicate .enc files

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-03-22 10:16:56 +01:00 committed by Alper Öztürk
parent 67ddd0ba38
commit c7e53633fc
2 changed files with 2 additions and 1 deletions

View file

@ -738,6 +738,8 @@ public class UploadFileOperation extends SyncOperation {
token = null;
}
}
encryptedTempFile.delete();
}
} catch (FileNotFoundException e) {
Log_OC.d(TAG, mFile.getStoragePath() + " not exists anymore");

View file

@ -568,7 +568,6 @@ public final class EncryptionUtils {
File encryptedFile = new File(file.getAbsolutePath() + ".enc");
encryptFileWithGivenCipher(file, encryptedFile, cipher);
String authenticationTagString = getAuthenticationTag(cipher);
Log_OC.d("", "KAVGAM!!: " + authenticationTagString);
return new EncryptedFile(encryptedFile, authenticationTagString);
}