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

index c4d7c9fec4713d0fdfe4f99473d82c0467efc7f6..51f570e20c3ca6e47fce49e4cf4388ba2c4433bc 100644 (file)
@@ -12,6 +12,6 @@ trait FluidbookDownload
         //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);
     }
 }
index e0425bd7b8fcefb7742da99a83a3214a597708ad..1194ed429b91a8b08491b099198a1ec6220347b3 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.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);
         }