]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6717 @0:01 fix
authorsoufiane <soufiane@cubedesigners.com>
Wed, 14 Feb 2024 15:17:18 +0000 (16:17 +0100)
committersoufiane <soufiane@cubedesigners.com>
Wed, 14 Feb 2024 15:17:18 +0000 (16:17 +0100)
app/Console/Commands/FluidbookSettingsExport.php
app/Http/Controllers/Admin/Operations/FluidbookPublication/DownloadOperation.php

index 4d3c566a5d706bd63a06f9ad5e1bcc94dff1e09d..d81c8e7e7a935a8b73f4463e8fc08575d6e5a37b 100644 (file)
@@ -131,7 +131,9 @@ class FluidbookSettingsExport extends ToolboxCommand
         $writer = new Xlsx($excel);
         $writer->save($tmpfile);
 
-        $url = route('download_settings', ['file' => base64_encode($tmpfile)]);
+        $hash = explode('cubist',$tmpfile)[1];
+
+        $url = route('download_settings', ['file' => base64_encode($hash)]);
         $subject = __("Export groupé des paramètres des fluidbooks prêt au téléchargement");
         $notification = '';
         $action = [
index 5cc6c39f9f24f479b1c1fb140c9748d3d45c6aff..68d112d085dde1e93b42aa54c0b0161734d255cc 100644 (file)
@@ -130,7 +130,7 @@ trait DownloadOperation
 
     protected function downloadSettings($file) {
         $name = "settings_export";
-        $path = base64_decode($file);
+        $path = "/tmp/cubist".base64_decode($file);
         if(!file_exists($path)) abort(404);
         return response()->download($path, $name . '.xlsx');
     }