Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Comment thread
cl-exense marked this conversation as resolved.
}