Description of problem: If an attachment MIME type is not specified, then
bugzilla prefers application/octet-stream even when text/plain is correct.
Text/plain is much more usable because all browsers can deal with it, so you can
View attachments easily directly from bugzilla.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Browse to select a text file to attach
2. Let bugzilla auto-detect file type (instead of manually selecting text/plain)
An actual text/plain file is auto-detected as application/octet-stream.
Actual text/plain is auto-detected as text/plain.
See attachments #2 and #3 to Bug #208712. These are perfectly good text files
(no control characters except '\n' and possibly '\t') but bugzilla chose
application/octet-stream. I changed it afterwards, using Edit.
Alternative solution for this would be to allow list of patterns (probably
normal glob patterns would be enough) which would we mean that for example
anything which looks like xorg.conf or Xorg.*.log* would end up as text/plain
(and not like now in application/octet-stream).
Of course, the solution suggested in this bug report would be OK as well. But
somebody should do something about it -- I waste tons of time on fixing freezing
*** Bug 349531 has been marked as a duplicate of this bug. ***