Guess a file attachment's content type if application/octet-stream.
Guess a file attachment's content type if application/octet-stream.

If a browser claims a file's content type is application/octet-stream,
get a second opinion by asking `file --mime-type`. This helps with some
browsers or server setups where that useless mimetype is being used,
preventing some files from being reviewable.

Fixes bug #2269
Reviewed at https://reviews.reviewboard.org/r/6016/

beol/reviewboard,sgallagher/reviewboard,KnowNo/reviewboard,brennie/reviewboard,1tush/reviewboard,bkochendorfer/reviewboard,custode/reviewboard,1tush/reviewboard,KnowNo/reviewboard,reviewboard/reviewboard,brennie/reviewboard,1tush/reviewboard,sgallagher/reviewboard,1tush/reviewboard,reviewboard/reviewboard,beol/reviewboard,beol/reviewboard,1tush/reviewboard,KnowNo/reviewboard,custode/reviewboard,1tush/reviewboard,1tush/reviewboard,custode/reviewboard,KnowNo/reviewboard,1tush/reviewboard,chipx86/reviewboard,bkochendorfer/reviewboard,davidt/reviewboard,sgallagher/reviewboard,chipx86/reviewboard,chipx86/reviewboard,reviewboard/reviewboard,sgallagher/reviewboard,davidt/reviewboard,1tush/reviewboard,brennie/reviewboard,bkochendorfer/reviewboard,custode/reviewboard,brennie/reviewboard,reviewboard/reviewboard,davidt/reviewboard,beol/reviewboard,bkochendorfer/reviewboard,chipx86/reviewboard,davidt/reviewboard