Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-14591 META: Develop new Portfolio API
  3. MDL-16360

use mime detection to detect sub formats of 'file'

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Portfolio
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      related to MDL-16359, I am leveraging the ability to go from icon types (roughly equivalent to portfolio formats for now) to supported mimetypes for any given format.

      i've tested this with the flickr plugin (which i've changed to support image and video formats) and it's working nice.

      also changed docs to add notes about supportedformats for single file export and mime detection:

      http://docs.moodle.org/en/Development:Adding_a_Portfolio_Button_to_a_page#supported_formats_.28static.29_.28read_this_even_if_you_don.27t_want_to_override_this_function.2C_it.27s_important.29

      and changed all logical places to be more specific about supported formats.

      also related to MDL-16124

        Attachments

          Activity

            People

            Assignee:
            mjollnir Penny Leach
            Reporter:
            mjollnir Penny Leach
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10