Skip to content

Commit

Permalink
[ISSUE-86] support xlsx files in attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
RamilKhaybulin committed Apr 24, 2024
1 parent c702598 commit ccf54b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/allure/attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const (
Webm MimeType = "video/webm"
Mpeg MimeType = "video/mpeg"

Pdf MimeType = "application/pdf"
Pdf MimeType = "application/pdf"
Xlsx MimeType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
)

var mimeTypeMap = map[MimeType]string{
Expand All @@ -67,6 +68,7 @@ var mimeTypeMap = map[MimeType]string{
Webm: "webm",
Mpeg: "mpeg",
Pdf: "pdf",
Xlsx: "xlsx",
}

// NewAttachment - Constructor. Returns pointer to new attachment object.
Expand Down

0 comments on commit ccf54b4

Please sign in to comment.