Merge pull request #2857 from nextcloud/bugfix/noid/fclose-node

Don't close tempfile as it is already done
This commit is contained in:
Julius Härtl
2021-03-08 10:25:41 +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);