From 7379d17a4080ae424f2eb456e3b1301a501cf971 Mon Sep 17 00:00:00 2001 From: Peter Papp Date: Mon, 21 Dec 2020 19:00:54 +0100 Subject: [PATCH] - zip file name fix --- app/Http/Tools/Editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Tools/Editor.php b/app/Http/Tools/Editor.php index 28508b34..2440ef9c 100644 --- a/app/Http/Tools/Editor.php +++ b/app/Http/Tools/Editor.php @@ -74,7 +74,7 @@ class Editor // Add files to zip $files->each(function ($file) use ($zip, $files_directory) { - $zip->addString($file['name'], File::get(storage_path() . '/app/' . $files_directory . '/' . $file['basename'])); + $zip->addString($file['name'] . '.' . $file['mimetype'], File::get(storage_path() . '/app/' . $files_directory . '/' . $file['basename'])); }); // Close zip