Skip to content

Commit

Permalink
Merge pull request #33232 from owncloud/office-tempfile-clean
Browse files Browse the repository at this point in the history
Don't remove temp file on fail when creating office preview
  • Loading branch information
DeepDiver1975 authored Oct 19, 2018
2 parents 6b6c1e1 + e3fe74b commit 464d925
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/private/Preview/Office.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public function getThumbnail(File $file, $maxX, $maxY, $scalingUp) {
$pdf = new \imagick($pdfPreview . '[0]');
$pdf->setImageFormat('jpg');
} catch (\Exception $e) {
\unlink($absPath);
@\unlink($pdfPreview);
\OCP\Util::writeLog('core', $e->getmessage(), \OCP\Util::ERROR);
return false;
Expand Down

0 comments on commit 464d925

Please sign in to comment.