Moodle

Force download not working

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.2
  • Fix Version/s: 1.9.3
  • Component/s: Resource
  • Labels:
    None
  • Environment:
    LAMP, MAMP(Mac)
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Hi,

Teacher uploads a medium sized (2MB) video file, links to it as a Resource with the force down load button checked.

On Mac with Firefox, the process stalls.

Windows 2000, XP, with Firefox, Firefox asks for application

With IE 6, Windows media pop ups.

Linux with Firefox, we get a 'no video' error message.

In all cases, we are not presented with a Save dialog.

Bill

Activity

Hide
Michael Blake added a comment -

Unable to reproduce.

Tested on mac with ff. Uploaded a .mov file. Linked to it with the "force download" button checked. Can save and display or save & return to course. All worked fine.

More info, or Bill if you'd like to send access details for this site to the helpdesk we can have a look at it for you.

Show
Michael Blake added a comment - Unable to reproduce. Tested on mac with ff. Uploaded a .mov file. Linked to it with the "force download" button checked. Can save and display or save & return to course. All worked fine. More info, or Bill if you'd like to send access details for this site to the helpdesk we can have a look at it for you.
Hide
iain stanley added a comment -

hi michael,

i noticed you tried to reproduce with a mac using firefox. all our problems, and those of the students, are coming from PC (windows) using FF and .wmv files. also the force download isn't giving the user the option to download, it is trying to automatically open the file in windows media player, with different error messages for different people.

we have over 3000 students and 50 teachers running into all sorts of problems with video playback on the site. as of this morning uploading of .wmv files was still causing issues.

cheers,

iain stanley

Show
iain stanley added a comment - hi michael, i noticed you tried to reproduce with a mac using firefox. all our problems, and those of the students, are coming from PC (windows) using FF and .wmv files. also the force download isn't giving the user the option to download, it is trying to automatically open the file in windows media player, with different error messages for different people. we have over 3000 students and 50 teachers running into all sorts of problems with video playback on the site. as of this morning uploading of .wmv files was still causing issues. cheers, iain stanley
Hide
Tim Hunt added a comment -

The problem is that the URL is coming out as

http://example.com/file.php/606/blah.wmv?0=forcedownload=1

and the 0= before the forcedownload=1 is confusing Moodle so the forcedownload is not recognised.

I can reproduce the problem here. Now I just need to track down where that =0 is coming from and fix it.

Show
Tim Hunt added a comment - The problem is that the URL is coming out as http://example.com/file.php/606/blah.wmv?0=forcedownload=1 and the 0= before the forcedownload=1 is confusing Moodle so the forcedownload is not recognised. I can reproduce the problem here. Now I just need to track down where that =0 is coming from and fix it.
Hide
Tim Hunt added a comment -

Fixed in 1.9. Not fixed in HEAD because I assume that the file API changes all of this code completely.

Show
Tim Hunt added a comment - Fixed in 1.9. Not fixed in HEAD because I assume that the file API changes all of this code completely.
Hide
Bill Burgos added a comment -

Thanks. We will look for 1.9.3.

Bill

Show
Bill Burgos added a comment - Thanks. We will look for 1.9.3. Bill
Hide
Dan Poltawski added a comment -

Verifed. Closing.

Thanks all.

Show
Dan Poltawski added a comment - Verifed. Closing. Thanks all.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: