always take unencrypted size

remotes/origin/fix-10825
Bjoern Schiessle 11 years ago
parent e4a3f8d3c4
commit ddac446c5b
  1. 4
      apps/files_encryption/lib/proxy.php

@ -157,8 +157,8 @@ class Proxy extends \OC_FileProxy {
// store new unenecrypted size so that it can be updated // store new unenecrypted size so that it can be updated
// in the post proxy // in the post proxy
$tmpFileInfo = $view->getFileInfo($tmpPath); $tmpFileInfo = $view->getFileInfo($tmpPath);
if ( isset($tmpFileInfo['size']) ) { if ( isset($tmpFileInfo['unencrypted_size']) ) {
self::$unencryptedSizes[\OC\Files\Filesystem::normalizePath($path)] = $tmpFileInfo['size']; self::$unencryptedSizes[\OC\Files\Filesystem::normalizePath($path)] = $tmpFileInfo['unencrypted_size'];
} }
// remove our temp file // remove our temp file

Loading…
Cancel
Save