Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel delete file after download

$filePath = public_path($file_name); //ex.
return Response::download($filePath)->deleteFileAfterSend(true);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #delete #file #download
ADD COMMENT
Topic
Name
8+7 =