No need to close the temp file as the View is already taking care of it

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2021-03-08 09:25:51 +00:00
committed by backportbot[bot]
parent fc85a09f69
commit 1beed6be61
-1
View File
@@ -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);