When uploading a .flv using IE, the mimetype isn't set correctly

Bug #809216 reported by François Marier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
François Marier

Bug Description

As described here:

  http://mahara.org/interaction/forum/topic.php?id=3840

it looks like unless users install a video player that will add a mimetype for .flv files, IE will send a generic one (application/octet-stream) to Mahara and so the file won't be recognized as a video file that can be selected by Mahara.

Tags: mimetype
Changed in mahara:
milestone: none → 1.4.1
importance: Undecided → High
status: New → Confirmed
assignee: nobody → François Marier (fmarier)
description: updated
Revision history for this message
François Marier (fmarier) wrote :
Changed in mahara:
importance: High → Medium
status: Confirmed → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/465
Committed: http://gitorious.org/mahara/mahara/commit/c43ef45daf6669043fefb2915c1e8ec18763f220
Submitter: Hugh Davenport (<email address hidden>)
Branch: master

commit c43ef45daf6669043fefb2915c1e8ec18763f220
Author: Francois Marier <email address hidden>
Date: Tue Jul 12 22:34:41 2011 +1200

    file_mime_type: increase use of hardcoded magic file (bug #809216)

    Mahara's mimetype detection function wasn't working properly and
    so it would not be able to set the right mimetype when a browser
    (typically IE) sets it to a generic value.

    The workaround in 821a693c8da162b91b0715eaee771b09d19de601 is not
    sufficient because symlinks, like directories, don't work but the
    is_file() function will resolve them and may return true.

      http://nz.php.net/manual/en/function.is-file.php#50742

    Change-Id: Ie8485ee10e5142a5f00032116c5492b9778dae51
    Signed-off-by: Francois Marier <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/464
Committed: http://gitorious.org/mahara/mahara/commit/f1f45d31bf5c9ed94e6d5464a2bb017b016b6d5c
Submitter: Francois Marier (<email address hidden>)
Branch: 1.4_STABLE

commit f1f45d31bf5c9ed94e6d5464a2bb017b016b6d5c
Author: Francois Marier <email address hidden>
Date: Tue Jul 12 22:34:41 2011 +1200

    file_mime_type: increase use of hardcoded magic file (bug #809216)

    Mahara's mimetype detection function wasn't working properly and
    so it would not be able to set the right mimetype when a browser
    (typically IE) sets it to a generic value.

    The workaround in 821a693c8da162b91b0715eaee771b09d19de601 is not
    sufficient because symlinks, like directories, don't work but the
    is_file() function will resolve them and may return true.

      http://nz.php.net/manual/en/function.is-file.php#50742

    Change-Id: Ib6eb837fe1f74c762eb8b715d72f4360fe2e6484
    Signed-off-by: Francois Marier <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.