Details
Description
Hi,
we got often problems with files not marked as "Force-Download". Plugins changes, Browsers changes, ... and Students would like to download per right-click.
Could it be possible to set the "Force Download" checkbox as checked by default?
Or maybe a checkbox in the Admin settings (Administration -> Modules -> Activities -> Resource) to turn on/off this value?
Could be nice ![]()
Hello, we had the same issues with the mess between different browser and plugins on client side, so we marked "Force download" by default modifying the file:
/mod/resource/type/file/resource.class.php
on line 661
from
if (isset($defaults['options']) and $defaults['options'] === 'forcedownload') {
to
if (!isset($defaults['options']) or $defaults['options'] === 'forcedownload') {
In all tests we have perform it works. We are running moodle 1.9.3.
We hope it will be useful.