]> _ Git - odl.git/commitdiff
wip #5194 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 20:16:08 +0000 (22:16 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 20:16:08 +0000 (22:16 +0200)
app/Http/Controllers/Tools/PackageDownloadFile.php

index 1194ed429b91a8b08491b099198a1ec6220347b3..90a185f5e284de2c60b1090664684025bb0b5c67 100644 (file)
@@ -15,7 +15,7 @@ trait PackageDownloadFile
         $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);
         }