Skip to content

Commit 73ba69d

Browse files
authored
For csv files mimetypes.guess_type is returning "application/vnd.ms-excel" on windows causing an invalid mime type in plaintextconverter. In reference to issue: #150 (#273)
1 parent 2a4f7bb commit 73ba69d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/markitdown/_markitdown.py

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
# This constant is a temporary fix until the bug is resolved.
4747
CONTENT_FORMAT = "markdown"
4848

49+
# Override mimetype for csv to fix issue on windows
50+
mimetypes.add_type("text/csv", ".csv")
51+
4952
# Optional Transcription support
5053
IS_AUDIO_TRANSCRIPTION_CAPABLE = False
5154
try:

0 commit comments

Comments
 (0)