MDL-33338 recognising the mimetype for uploaded files
authorMarina Glancy <marina@moodle.com>
Mon, 28 May 2012 07:19:41 +0000 (15:19 +0800)
committerMarina Glancy <marina@moodle.com>
Mon, 28 May 2012 07:19:41 +0000 (15:19 +0800)
commit4c2fcbfc85490848269bec3361ece4b1f6d58a82
tree642b812242e4ffa1ed835989d79e90f49f648160
parent4631e39533ba154546a84f5a81fe56d89dc658f0
MDL-33338 recognising the mimetype for uploaded files

- when file is uploaded in php, the tmpname does not have initial extension and mimetype recognition by extension fails
- another issue is that import form for questions fails with fatal error when it should just say that field is required
lib/filestorage/file_storage.php
question/import_form.php