$path = storage_path('package.zip');
if (file_exists($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);
+ 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);
}