Skip to content

Commit

Permalink
on force la suppression du fichier apres telechargement
Browse files Browse the repository at this point in the history
  • Loading branch information
jerlio committed Jul 4, 2024
1 parent 3e3a36d commit 6032142
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/AppBundle/Controller/SponsorScanController.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public function exportAction(Request $request, $eventSlug)

$response = new BinaryFileResponse($file);
$response->setContentDisposition(ResponseHeaderBag::DISPOSITION_ATTACHMENT, $baseName . '.csv');
$response->deleteFileAfterSend(true);

return $response;
}
Expand Down

0 comments on commit 6032142

Please sign in to comment.