From 2e24fd7fc497cd96e381828c506fbc6141837b29 Mon Sep 17 00:00:00 2001 From: Christoph Langguth Date: Thu, 6 Aug 2026 16:06:03 +0200 Subject: [PATCH] SED-4816 remove hardcoded MIME type for attachments when unspecified --- .../src/main/java/step/grid/io/AttachmentHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/step-api/step-api-reporting/src/main/java/step/grid/io/AttachmentHelper.java b/step-api/step-api-reporting/src/main/java/step/grid/io/AttachmentHelper.java index 0bf7a35..5125964 100644 --- a/step-api/step-api-reporting/src/main/java/step/grid/io/AttachmentHelper.java +++ b/step-api/step-api-reporting/src/main/java/step/grid/io/AttachmentHelper.java @@ -48,6 +48,7 @@ public static Attachment generateAttachmentFromByteArray(byte[] bytes, String at } public static Attachment generateAttachmentFromByteArray(byte[] bytes, String attachmentName) { - return generateAttachmentFromByteArray(bytes, attachmentName, "application/octet-stream"); + // Attachment storage will try to auto-determine mimeType, or fall back to application/octet-stream + return generateAttachmentFromByteArray(bytes, attachmentName, null); } }