From 214fb3417dcb25d7ef10475d54247bf49bfbf324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 5 Mar 2021 14:29:00 +0100 Subject: [PATCH] No need to close the temp file as the View is already taking care of it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/FilesAppService.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Service/FilesAppService.php b/lib/Service/FilesAppService.php index ea6c06506..aab5fb5cc 100644 --- a/lib/Service/FilesAppService.php +++ b/lib/Service/FilesAppService.php @@ -174,7 +174,6 @@ class FilesAppService implements IAttachmentService, ICustomAttachmentService { throw new StatusException('Could not read file'); } $target->putContent($content); - fclose($content); $share = $this->shareManager->newShare(); $share->setNode($target);