View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0010722||mantisbt||attachments||public||2009-07-14 03:24||2019-09-12 05:57|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Summary||0010722: Decide attachment preview based on mime type|
I think we should consider using mime types to decide whether to preview a file or not. We can do preview a file if it matches extensions OR matches mime type. This will have to be used for images / text.
We could match the mime based on prefix, e.g "text/" would match all mime types that start with "text/".
I've done a query on the mime types in this database and here are the results I got.
Archives: (we don't currently support previewing these)
|Tags||No tags attached.|
I'm not exactly sure if this is related or a new bug should be reported. The inline preview for attached SVG image files is not working.
Tested this on a clean new XAMPP install with MantisBT version 2.22.0, Apache 2.4.41 and PHP-7.3.9 to be sure.
Or is there something else that I have missed configuring?