vmsreeram / moodle-qtype_essayannotate

A moodle question plugin that supports PDF annotation
0 stars 0 forks source link

Mime type cleanup #3

Closed nideez45 closed 7 months ago

nideez45 commented 7 months ago

Currently there are two functions calls to check mime type in annotator.php.

nideez45 commented 7 months ago

mime_content_type gives more concise file type for code files, but to use it in renderer.php we need to copy the attachment to temp directory as mime_content_type needs file path. So sticking to use of both mime_content_type and get_mimetype_description