-
Sub-task
-
Resolution: Fixed
-
Minor
-
2.3
-
MOODLE_23_STABLE
Make sure that field stored_file::mimetype (and corresponding DB field) is updated each time:
when file is uploaded, renamed or content is replaced.
If it is possible to determine the type from the file (binary files have this information inside), use mimetype from inside the file (function finfo_file?). If it is a text file, get mimetype from file extension.
It is important to display the correct file type in filemanager/filepicker, to determine whether we can display file inline or not, whether we allow or not this type in this particular file area.
- caused a regression
-
MDL-58746 Fileinfo extension is not available by default in (at very least) windows
-
- Closed
-
- has a non-specific relationship to
-
MDL-33032 META: Files UI Stage 1 integrate branch into core
-
- Closed
-
- has been marked as being related by
-
MDL-33338 GIFT import file is not recognized when comments are used
-
- Closed
-
- will be (partly) resolved by
-
MDL-35622 Internet Explorer 9 problems with smartboard files.
-
- Closed
-