mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[Connector] read filesize over 2GB on 32bit system
but upload is impossible may be.
This commit is contained in:
@@ -298,9 +298,9 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
$stat['target'] = $target;
|
||||
$path = $target;
|
||||
$lstat = lstat($path);
|
||||
$size = $lstat['size'];
|
||||
$size = sprintf('%u', $lstat['size']);
|
||||
} else {
|
||||
$size = @filesize($path);
|
||||
$size = sprintf('%u', @filesize($path));
|
||||
}
|
||||
|
||||
$dir = is_dir($path);
|
||||
@@ -629,13 +629,13 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
if (is_dir($p) && $this->_findSymlinks($p)) {
|
||||
return true;
|
||||
} elseif (is_file($p)) {
|
||||
$this->archiveSize += filesize($p);
|
||||
$this->archiveSize += sprintf('%u', filesize($p));
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
$this->archiveSize += filesize($path);
|
||||
$this->archiveSize += sprintf('%u', filesize($path));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user