owenthereal / codefaces

a web-based source control client
3 stars 2 forks source link

[Core] Disallow openning of non-text file #69

Open kklo opened 14 years ago

kklo commented 14 years ago

Although we cannot avoid the bandwidth usage, disallow openning can certainly save some unnecessary memory use. We may need a mime parser, Apache Tika may worth to take a look http://tika.apache.org/0.7/gettingstarted.html

kklo commented 14 years ago

Tried Tika and Mime-Util, the accuracy is quite low. Using a file extension table should be better