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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user