mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[volume:FTP,S3] support function _dimensions()
This commit is contained in:
@@ -678,7 +678,14 @@ class elFinderVolumeFTP extends elFinderVolumeDriver {
|
||||
* @author Dmitry (dio) Levashov
|
||||
**/
|
||||
protected function _dimensions($path, $mime) {
|
||||
return false;
|
||||
$ret = '';
|
||||
if ($work = $this->getWorkFile($path)) {
|
||||
if ($size = @getimagesize($work)) {
|
||||
$ret = $size[0].'x'.$size[1];
|
||||
}
|
||||
}
|
||||
is_file($work) && @unlink($work);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/******************** file/dir content *********************/
|
||||
|
||||
Reference in New Issue
Block a user