question about recognizing text/plain
[ikiwiki] / doc / plugins / filecheck / discussion.mdwn
1 First, thanks again for making this plugin.
2
3 I don't know if this is a problem for [[plugins/attachment]], but there seems to
4 be no way to detect text/plain using File::MimeInfo::Magic::magic().
5 There is a heuristic ::default that decides between text/plain and application/octet-stream.  
6
7 Would you be receptive to a patch that e.g. called File::MimeInfo::Magic::default()
8 if ::magic() returns undef?  --[[DavidBremner]]