setting the allowed mimetypes for file upload

setting the allowed mimetypes for file upload

by Di Juwel -
Number of replies: 2

Hi

I'm using moodle 2.7
 
I would like to restrict the permitted upload file types to a certain white list of my own, not the default one by moodle
I don't mean a certain component or course - I mean the entire moodle site.
I don't want to allow anyone to ever upload any file type that is not in my whit list, regardless if the user is an administrator role or other.
 
I did not find a way to do this in the administration menus I can config it.

I see in the file repository/lib.php
a class repository that has a function called supported_filetypes()
and it returns '*'

could that be the only place this could be modified ? if so it's terrbile.
there must be another way in the code or in the database... ?

Average of ratings: -