Moodle

Set "Force-Download" as default, or managable as admin

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.8
  • Fix Version/s: 2.0
  • Component/s: Resource
  • Labels:
    None
  • Database:
    PostgreSQL
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

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

Activity

Hide
Jorge Redondo added a comment -

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.

Show
Jorge Redondo added a comment - 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.
Hide
Petr Škoda (skodak) added a comment -

Hello, the resource modules were rewritten completely in 2.0 - there are some new presets that should allow you to do this. Please file new issue if necessary. thanks for the report.

Show
Petr Škoda (skodak) added a comment - Hello, the resource modules were rewritten completely in 2.0 - there are some new presets that should allow you to do this. Please file new issue if necessary. thanks for the report.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: