Spaces:
Sleeping
Sleeping
feat: markdown upload support — app/services/ingestion.py
Browse files
app/services/ingestion.py
CHANGED
|
@@ -90,6 +90,8 @@ def _sniff_mime(filename: str, head: bytes) -> str:
|
|
| 90 |
".jpeg": "image/jpeg",
|
| 91 |
".tiff": "image/tiff",
|
| 92 |
".html": "text/html",
|
|
|
|
|
|
|
| 93 |
}.get(ext, "application/octet-stream")
|
| 94 |
|
| 95 |
|
|
|
|
| 90 |
".jpeg": "image/jpeg",
|
| 91 |
".tiff": "image/tiff",
|
| 92 |
".html": "text/html",
|
| 93 |
+
".md": "text/markdown",
|
| 94 |
+
".markdown": "text/markdown",
|
| 95 |
}.get(ext, "application/octet-stream")
|
| 96 |
|
| 97 |
|