We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a3ffc commit 1954187Copy full SHA for 1954187
src/Symfony/Component/HttpFoundation/BinaryFileResponse.php
@@ -305,7 +305,7 @@ public function sendContent()
305
fclose($out);
306
fclose($file);
307
308
- if ($this->deleteFileAfterSend) {
+ if ($this->deleteFileAfterSend && file_exists($this->file->getPathname())) {
309
unlink($this->file->getPathname());
310
}
311
0 commit comments