I’d like to restrict Guest and Portal users to only upload certain types of files. From this frappe fix, it looks like I only need to change handler.py.
I’ve since removed unwanted types(excel) from the list in handler.py and restart the bench. However, portal users still can upload .xlsx files. Am I missing anything here?
hello, maybe one reason is you need to do bench restart if self hosted or if you are using FrappeCloud go to bench > Versions > restart bench because ALLOWED_MIMETYPES is a global variable
Self hosted v13 in development mode. Already did bench restart after modifying the list. I’m really confused why the changes has no effect. Not sure if there’s anything else I need to change?