@@ 2172-2174 (lines=3) @@ | ||
2169 | } |
|
2170 | } |
|
2171 | ||
2172 | if (! $this->allowPutMime($mime) || ($mimeByName && ! $this->allowPutMime($mimeByName))) { |
|
2173 | return $this->setError(elFinder::ERROR_UPLOAD_FILE_MIME); |
|
2174 | } |
|
2175 | ||
2176 | $tmpsize = sprintf('%u', filesize($tmpname)); |
|
2177 | if ($this->uploadMaxSize > 0 && $tmpsize > $this->uploadMaxSize) { |
|
@@ 2521-2523 (lines=3) @@ | ||
2518 | fclose($tp); |
|
2519 | } |
|
2520 | } |
|
2521 | if (! $this->allowPutMime($mimeByName) || ($mime && ! $this->allowPutMime($mime))) { |
|
2522 | return $this->setError(elFinder::ERROR_UPLOAD_FILE_MIME); |
|
2523 | } |
|
2524 | ||
2525 | $this->clearcache(); |
|
2526 | ||
@@ 4791-4793 (lines=3) @@ | ||
4788 | if ($source['mime'] === $mimeByName) { |
|
4789 | $mimeByName = ''; |
|
4790 | } |
|
4791 | if (! $this->allowPutMime($source['mime']) || ($mimeByName && ! $this->allowPutMime($mimeByName))) { |
|
4792 | return $this->setError(elFinder::ERROR_UPLOAD_FILE_MIME, $errpath); |
|
4793 | } |
|
4794 | ||
4795 | if (strpos($source['mime'], 'image') === 0 && ($dim = $volume->dimensions($src))) { |
|
4796 | $s = explode('x', $dim); |