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: https://github.com/microsoft/markitdown/issues/150 (#273)
This commit is contained in:
parent
2a4f7bb6a8
commit
73ba69d8cd
1 changed files with 3 additions and 0 deletions
|
|
@ -46,6 +46,9 @@ from azure.identity import DefaultAzureCredential
|
|||
# This constant is a temporary fix until the bug is resolved.
|
||||
CONTENT_FORMAT = "markdown"
|
||||
|
||||
# Override mimetype for csv to fix issue on windows
|
||||
mimetypes.add_type("text/csv", ".csv")
|
||||
|
||||
# Optional Transcription support
|
||||
IS_AUDIO_TRANSCRIPTION_CAPABLE = False
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue