preserve filesize on rename after upload

remotes/origin/poc-doctrine-migrations
Thomas Müller 10 years ago
parent f816acde27
commit 387984a0d5
  1. 3
      lib/private/files/storage/wrapper/encryption.php

@ -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…
Cancel
Save