mirror of https://github.com/nextcloud/android
Dont use cache dir. cache dir might be deleted during big file uploads
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
d583a2f62c
commit
123c576399
|
@ -548,7 +548,7 @@ public final class EncryptionUtils {
|
|||
}
|
||||
|
||||
public static EncryptedFile encryptFile(Context context, File file, Cipher cipher) throws InvalidParameterSpecException, IOException {
|
||||
File tempEncryptedFile = File.createTempFile(file.getName(), null, context.getCacheDir());
|
||||
File tempEncryptedFile = File.createTempFile(file.getName(), null, context.getFilesDir());
|
||||
encryptFileWithGivenCipher(file, tempEncryptedFile, cipher);
|
||||
String authenticationTagString = getAuthenticationTag(cipher);
|
||||
return new EncryptedFile(tempEncryptedFile, authenticationTagString);
|
||||
|
|
Loading…
Reference in New Issue