From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 20:14:11 +0000 (+0200) Subject: wip #5194 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=53100d056d64debf9e6d669f06fc3ff6fee88cb5;p=odl.git wip #5194 @0.25 --- diff --git a/app/Http/Controllers/Tools/FluidbookDownload.php b/app/Http/Controllers/Tools/FluidbookDownload.php index c4d7c9f..51f570e 100644 --- a/app/Http/Controllers/Tools/FluidbookDownload.php +++ b/app/Http/Controllers/Tools/FluidbookDownload.php @@ -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); } } diff --git a/app/Http/Controllers/Tools/PackageDownloadFile.php b/app/Http/Controllers/Tools/PackageDownloadFile.php index e0425bd..1194ed4 100644 --- a/app/Http/Controllers/Tools/PackageDownloadFile.php +++ b/app/Http/Controllers/Tools/PackageDownloadFile.php @@ -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); }