From 86dccffff94c063194838905bb59aedf51c954aa Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 18 Dec 2019 08:36:30 +0100 Subject: [PATCH] Fix Office preview generation Signed-off-by: Roeland Jago Douma --- lib/private/Preview/Office.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Preview/Office.php b/lib/private/Preview/Office.php index af6a2ef89f8..bdf8c528135 100644 --- a/lib/private/Preview/Office.php +++ b/lib/private/Preview/Office.php @@ -60,7 +60,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'); -- 2.39.5