Better cleanup routine.

This commit is contained in:
James Cole
2016-02-04 17:22:09 +01:00
parent dd361bb9ad
commit f300287814
2 changed files with 3 additions and 2 deletions

View File

@@ -48,6 +48,8 @@ class ExportController extends Controller
$name = 'Export job on ' . $date . '.zip';
$quoted = sprintf('"%s"', addcslashes($name, '"\\'));
$job->change('export_downloaded');
return response(file_get_contents($file), 200)
->header('Content-Description', 'File Transfer')