• Robert Lyon's avatar
    Bug 1722132: Video mimetype not set correctly due to fetch by assoc · e978112e
    Robert Lyon authored
    Rather than fetching by array now that we have multiple extensions
    using the 'video/mp4' mimetype.
    This would cause problems for older sites where the file was correctly
    saved as 'video' artefacttype but where the fetching from db of the
    mimetypes to compare would associate a different extension to
    'video/mp4', eg 'm4v'.
    This also meant that videos uploaded after commit
     could end up being saved as
    atefacttype 'file' rather than 'video'
    This patch fetches mimetypes as array and tidies things up for video
    Change-Id: I53dc2d5ddb573d630f1de408cc9c027e488cd99e
    Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>