From: vincent Date: Sat, 26 Mar 2022 16:00:24 +0000 (+0100) Subject: wip #5179 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b7c1f240c595bb77c28817aeeaef371b43b44e4d;p=odl.git wip #5179 --- diff --git a/app/Http/Controllers/Tools/FluidbookDownload.php b/app/Http/Controllers/Tools/FluidbookDownload.php index 06b4da0..51f570e 100644 --- a/app/Http/Controllers/Tools/FluidbookDownload.php +++ b/app/Http/Controllers/Tools/FluidbookDownload.php @@ -3,12 +3,13 @@ namespace App\Http\Controllers\Tools; use App\Jobs\ProcessFluidbook; +use Cubist\Util\Zip; trait FluidbookDownload { protected function fluidbookdownload($args) { - ProcessFluidbook::dispatchSync(); + //ProcessFluidbook::dispatchSync(); $p = storage_path('fluidbook.zip'); Zip::archive(storage_path('fluidbook/out'), $p); return response(null)->header('Content-Disposition', 'attachment;filename=package.zip')->header('Content-Type', Files::_getMimeType($p))->header('X-Sendfile', $p);