From c24da1f203955e6c24be3eb270dd40f7c609f883 Mon Sep 17 00:00:00 2001 From: Thorsten Fritz Date: Mon, 11 Sep 2023 08:32:18 +0200 Subject: [PATCH 1/3] Add missing mime types for dtg and embroidery --- src/Generation/FlysystemProvidedMimeTypeProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Generation/FlysystemProvidedMimeTypeProvider.php b/src/Generation/FlysystemProvidedMimeTypeProvider.php index 6d6435b..0b407ea 100644 --- a/src/Generation/FlysystemProvidedMimeTypeProvider.php +++ b/src/Generation/FlysystemProvidedMimeTypeProvider.php @@ -185,6 +185,9 @@ public function provideMimeTypes(): array new MimeTypeForExtension('application/vnd.oasis.opendocument.text-template', 'ott'), new MimeTypeForExtension('application/STEP', 'step'), new MimeTypeForExtension('application/STEP', 'stp'), + new MimeTypeForExtension('application/octet-stream', 'dst'), + new MimeTypeForExtension('application/octet-stream', 'pv'), + new MimeTypeForExtension('application/octet-stream', 'pxf'), ]; } } From 74f54dce2ded8b3081abca31a2be9d4e15b54185 Mon Sep 17 00:00:00 2001 From: Thorsten Fritz Date: Wed, 13 Sep 2023 10:57:50 +0200 Subject: [PATCH 2/3] Set the correct application type for dst file --- src/Generation/FlysystemProvidedMimeTypeProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generation/FlysystemProvidedMimeTypeProvider.php b/src/Generation/FlysystemProvidedMimeTypeProvider.php index 0b407ea..9d3ea5e 100644 --- a/src/Generation/FlysystemProvidedMimeTypeProvider.php +++ b/src/Generation/FlysystemProvidedMimeTypeProvider.php @@ -185,7 +185,7 @@ public function provideMimeTypes(): array new MimeTypeForExtension('application/vnd.oasis.opendocument.text-template', 'ott'), new MimeTypeForExtension('application/STEP', 'step'), new MimeTypeForExtension('application/STEP', 'stp'), - new MimeTypeForExtension('application/octet-stream', 'dst'), + new MimeTypeForExtension('application/tajima', 'dst'), new MimeTypeForExtension('application/octet-stream', 'pv'), new MimeTypeForExtension('application/octet-stream', 'pxf'), ]; From 59f06dfd5e32cee4c84f8693af096dbb7f50c679 Mon Sep 17 00:00:00 2001 From: Thorsten Fritz Date: Wed, 13 Sep 2023 12:44:34 +0200 Subject: [PATCH 3/3] Rollback to application/octet-stream --- src/Generation/FlysystemProvidedMimeTypeProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generation/FlysystemProvidedMimeTypeProvider.php b/src/Generation/FlysystemProvidedMimeTypeProvider.php index 9d3ea5e..0b407ea 100644 --- a/src/Generation/FlysystemProvidedMimeTypeProvider.php +++ b/src/Generation/FlysystemProvidedMimeTypeProvider.php @@ -185,7 +185,7 @@ public function provideMimeTypes(): array new MimeTypeForExtension('application/vnd.oasis.opendocument.text-template', 'ott'), new MimeTypeForExtension('application/STEP', 'step'), new MimeTypeForExtension('application/STEP', 'stp'), - new MimeTypeForExtension('application/tajima', 'dst'), + new MimeTypeForExtension('application/octet-stream', 'dst'), new MimeTypeForExtension('application/octet-stream', 'pv'), new MimeTypeForExtension('application/octet-stream', 'pxf'), ];