Opened 10 years ago
Closed 10 years ago
#136 closed enhancement (fixed)
Detect mime type and character set of local files when importing
| Reported by: | dstillman | Owned by: | dstillman |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.0 Beta 2 |
| Component: | data layer | Version: | 1.0 |
| Keywords: | Cc: |
Description
Scholar.Files._getMIMETypeFromFile(file) and Scholar.Files._getCharsetIDFromFile(file)
_getMIMETypeFromFile() partly works, but it only uses the file extension, so files on OS X or *nix without extensions won't be properly identified
Change History (4)
comment:1 Changed 10 years ago by dstillman
- Status changed from new to assigned
comment:2 Changed 10 years ago by dstillman
comment:3 Changed 10 years ago by dstillman
- Milestone changed from 1.0 Beta 1 to 1.0 Beta 2
- Priority changed from major to minor
Don't have a great solution for character set yet -- pushing to Beta 2
Not too big a deal, but we can't really implement a proper attachment search until we know the charset (though falling back to UTF-8 will handle most data)
comment:4 Changed 10 years ago by dstillman
- Resolution set to fixed
- Status changed from assigned to closed
Character set detection implemented in r683, though not in any way that I like
Note: See
TracTickets for help on using
tickets.
(In [470]) Addresses #136, Detect mime type and character set of local files when importing
Use new MIME type detection tricks when linking and importing files -- now for charset detection...