mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 05:29:12 +00:00
Use encoding of each file set in indexer request to read file
Get encoding type from multi-part/form-request body for each file Read text files as utf-8 and pdfs, images as binary
This commit is contained in:
@@ -93,9 +93,9 @@ function filenameToMimeType (filename) {
|
||||
case 'png':
|
||||
return 'image/png';
|
||||
case 'jpg':
|
||||
return 'image/jpeg';
|
||||
case 'jpeg':
|
||||
return 'image/jpeg';
|
||||
case 'md':
|
||||
case 'markdown':
|
||||
return 'text/markdown';
|
||||
case 'org':
|
||||
|
||||
Reference in New Issue
Block a user