Skip to content

Commit

Permalink
Removing true flag for deleteFileAfterSend
Browse files Browse the repository at this point in the history
Symfony no longer requires the true flag for deleteFileAfterSend and defaults to true since 4.1
  • Loading branch information
nowendwell committed Oct 18, 2018
1 parent b471390 commit 8af04a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ The `download` method may be used to generate a response that forces the user's

return response()->download($pathToFile, $name, $headers);

return response()->download($pathToFile)->deleteFileAfterSend(true);
return response()->download($pathToFile)->deleteFileAfterSend();

> {note} Symfony HttpFoundation, which manages file downloads, requires the file being downloaded to have an ASCII file name.
Expand Down

0 comments on commit 8af04a5

Please sign in to comment.