Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs/research/non-pdf-dom-evidence/standards/*.txt -whitespace
28 changes: 28 additions & 0 deletions backend/services/attachment_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,34 @@ class AttachmentParserDescriptor:
extensions=(".md", ".markdown"),
parse_status="parsed",
),
AttachmentParserDescriptor(
parser_key="json",
display_name="JSON attachments",
content_types=("application/json", "text/json"),
extensions=(".json",),
parse_status="parsed",
),
AttachmentParserDescriptor(
parser_key="csv",
display_name="CSV attachments",
content_types=("text/csv", "application/csv"),
extensions=(".csv",),
parse_status="parsed",
),
AttachmentParserDescriptor(
parser_key="xml",
display_name="XML attachments",
content_types=("application/xml", "text/xml"),
extensions=(".xml",),
parse_status="parsed",
),
AttachmentParserDescriptor(
parser_key="calendar",
display_name="iCalendar attachments",
content_types=("text/calendar",),
extensions=(".ics", ".ifb"),
parse_status="parsed",
),
AttachmentParserDescriptor(
parser_key="unsupported_binary",
display_name="Unsupported binary attachments",
Expand Down
Loading
Loading