diff --git a/php/elFinderVolumeDriver.class.php b/php/elFinderVolumeDriver.class.php index 4f4745b0b..bbb61f93a 100644 --- a/php/elFinderVolumeDriver.class.php +++ b/php/elFinderVolumeDriver.class.php @@ -1354,7 +1354,7 @@ abstract class elFinderVolumeDriver { return $this->setError(elFinder::ERROR_UPLOAD_FILE_MIME); } - if ($this->uploadMaxSize > 0 && filesize($tmpPath) > $this->uploadMaxSize) { + if ($this->uploadMaxSize > 0 && filesize($tmpname) > $this->uploadMaxSize) { return $this->setError(elFinder::ERROR_UPLOAD_FILE_SIZE); }