//ProcessFluidbook::dispatchSync();
$p = storage_path('fluidbook.zip');
Zip::archive(storage_path('fluidbook/out'), $p);
- return response(null)->header('Content-Disposition', 'attachment;filename=package_' . date('YmdHis', filemtime($p)) . '.zip')->header('Content-Type', Files::_getMimeType($p))->header('X-Sendfile', $p);
+ return response(null)->header('Content-Disposition', 'attachment;filename=package.zip')->header('Content-Type', Files::_getMimeType($p))->header('X-Sendfile', $p);
}
}
$path = storage_path('package.zip');
if (file_exists($path)) {
- return response(null)->header('Content-Disposition', 'attachment;filename=package.zip')->header('Content-Type', Files::_getMimeType($path))->header('X-Sendfile', $path);
+ return response(null)->header('Content-Disposition', 'attachment;filename=package_' . date('YmdHis', filemtime($path)) . '..zip')->header('Content-Type', Files::_getMimeType($path))->header('X-Sendfile', $path);
} else {
return response(null)->setStatusCode(404);
}