Upload files with the proper mimetypes.
Upload files with the proper mimetypes.

The file uploading code was always setting the mimetype to
application/octet-stream, despite being able to get the mimetype from
the File object. We now use the File's mimetype instead. This fixes
mimetypes for any newly uploaded file attachments.

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