preserve filesize on rename after upload
This commit is contained in:
parent
f816acde27
commit
387984a0d5
|
@ -181,6 +181,9 @@ class Encryption extends Wrapper {
|
|||
$result = $this->storage->rename($path1, $path2);
|
||||
if ($result) {
|
||||
$target = $this->getFullPath($path2);
|
||||
if (isset($this->unencryptedSize[$source])) {
|
||||
$this->unencryptedSize[$target] = $this->unencryptedSize[$source];
|
||||
}
|
||||
$encryptionModule = $this->getEncryptionModule($path2);
|
||||
if ($encryptionModule) {
|
||||
$keyStorage = $this->getKeyStorage($encryptionModule->getId());
|
||||
|
|
Loading…
Reference in New Issue