Skip to content

Commit

Permalink
Emerge 'deleteFileAfterSend' option for Binary Response
Browse files Browse the repository at this point in the history
  • Loading branch information
Donato Rotunno authored and Donato Rotunno committed Mar 5, 2015
1 parent 3dec6e5 commit 9777617
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ The `json` method will automatically set the `Content-Type` header to `applicati

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

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

> **Note:** Symfony HttpFoundation, which manages file downloads, requires the file being downloaded to have an ASCII file name.
<a name="response-macros"></a>
Expand Down

0 comments on commit 9777617

Please sign in to comment.