You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like it would do the trick, but might be a bit heavy for just mime-type detection. A lo-fi alternative might be to use javax.activation.MimetypesFileTypeMap. Seems that the tradeoff would be speed of detection vs weight of code dependency. We'd also probably have to manually list some of the mime types we're detecting with javax.activation - but that's possible and not such a big deal since we only need to support csv, excel and openoffice.
When there is no extension, xlwrap currently guesses the file type as being csv. see:
https://github.com/markbirbeck/xlwrap/commit/ef3b0096d89bcd3472d5a2b1b65aefae6c08d0c6
It would be better to use the MIME type to make work out the file type.
The text was updated successfully, but these errors were encountered: