Merge pull request #2869 from nextcloud/backport/2857/stable1.3

[stable1.3] Don't close tempfile as it is already done
This commit is contained in:
Julius Härtl
2021-03-08 10:39:08 +01:00
committed by GitHub

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);