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:
@@ -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