While working at MDL-38468 I found that files with an unknown MIME type are actually streamed as 'unknown':
...
|
Content-Disposition: inline; filename="Moodle_org open-source community-based tools for learning_org-.mht"
|
...
|
Content-Type: document/unknown
|
...
|
as per:
lib/filelib.php |
...
|
function &get_mimetypes_array() {
|
static $mimearray = array (
|
'xxx' => array ('type'=>'document/unknown', 'icon'=>'unknown'),
|
...
|
Why not using application/octet-stream by default?
- has been marked as being related by
-
MDL-33787 Invalid MIME type for GZIP compressed files and archives
-
- Reopened
-
-
MDL-35282 Moodle 2.3 Treats Pub files as Word files (sets as Word MIME Type)
-
- Closed
-
-
MDL-49466 Policy: What to do about new mimetype requests
-
- Closed
-
- Testing discovered
-
MDL-38468 Links to mht/mhtml files stream the MTHML file source code
-
- Closed
-
- will be (partly) resolved by
-
MDL-44828 Resource Force download causes unable to open error or Android devices and ios7+ devices
-
- Closed
-