Skip to content

Commit

Permalink
[VD:abstract] fix mime detect of fallback to mimetypeInternalDetect()
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed May 20, 2015
1 parent 3c0e119 commit ba5cfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/elFinderVolumeDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ public function upload($fp, $dst, $name, $tmpname) {
}

$mime = $this->mimetype($this->mimeDetect == 'internal' ? $name : $tmpname, $name);
if ($mime == 'unknown' && $this->mimeDetect == 'internal') {
if ($mime == 'unknown' && $this->mimeDetect != 'internal') {
$mime = elFinderVolumeDriver::mimetypeInternalDetect($name);
}

Expand Down

0 comments on commit ba5cfb7

Please sign in to comment.