diff --git a/lib/private/Preview/Office.php b/lib/private/Preview/Office.php index f51023c5a8..bc7883984f 100644 --- a/lib/private/Preview/Office.php +++ b/lib/private/Preview/Office.php @@ -56,7 +56,7 @@ abstract class Office extends ProviderV2 { $pngPreview = null; try { list($dirname, , , $filename) = array_values(pathinfo($absPath)); - $pngPreview = $dirname . '/' . $filename . '.png'; + $pngPreview = $tmpDir . '/' . $filename . '.png'; $png = new \imagick($pngPreview . '[0]'); $png->setImageFormat('jpg');