detect mimetype from the original filename, without the versioning timestamp
This commit is contained in:
parent
863aedf784
commit
bef5108218
1 changed files with 3 additions and 2 deletions
|
@ -37,8 +37,9 @@ if($maxX === 0 || $maxY === 0) {
|
|||
}
|
||||
|
||||
try{
|
||||
$preview = new \OC\Preview($user, 'files_versions');
|
||||
$preview->setFile($file.'.v'.$version);
|
||||
$preview = new \OC\Preview($user, 'files_versions', $file.'.v'.$version);
|
||||
$mimetype = \OC_Helper::getFileNameMimeType($file);
|
||||
$preview->setMimetype($mimetype);
|
||||
$preview->setMaxX($maxX);
|
||||
$preview->setMaxY($maxY);
|
||||
$preview->setScalingUp($scalingUp);
|
||||
|
|
Loading…
Reference in a new issue