Skip to content
Snippets Groups Projects
Commit ddac446c authored by Björn Schießle's avatar Björn Schießle
Browse files

always take unencrypted size

parent e4a3f8d3
Branches
No related tags found
No related merge requests found
...@@ -157,8 +157,8 @@ class Proxy extends \OC_FileProxy { ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment