always take unencrypted size
This commit is contained in:
parent
e4a3f8d3c4
commit
ddac446c5b
1 changed files with 2 additions and 2 deletions
|
@ -157,8 +157,8 @@ class Proxy extends \OC_FileProxy {
|
|||
// store new unenecrypted size so that it can be updated
|
||||
// in the post proxy
|
||||
$tmpFileInfo = $view->getFileInfo($tmpPath);
|
||||
if ( isset($tmpFileInfo['size']) ) {
|
||||
self::$unencryptedSizes[\OC\Files\Filesystem::normalizePath($path)] = $tmpFileInfo['size'];
|
||||
if ( isset($tmpFileInfo['unencrypted_size']) ) {
|
||||
self::$unencryptedSizes[\OC\Files\Filesystem::normalizePath($path)] = $tmpFileInfo['unencrypted_size'];
|
||||
}
|
||||
|
||||
// remove our temp file
|
||||
|
|
Loading…
Reference in a new issue