Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-32474

META: Repositories need to return more information about files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Inactive
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Filepicker, Repositories
    • Labels:
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      New Filepicker can show additional information about files such as

      datemodified
      datecreated
      size
      author
      license
      icon (thumbnail with size 24x24)
      image_width (in pixels, null if this is not an image)
      image_height (in pixels, null if this is not an image)
      realthumbnail (for lazy-loading, location of image preview)
      realicon (for lazy-loading, location of image preview 16x16)

      If external repositories provide such information our repository plugins must return it. For compatibility if 'datemodified' or 'datecreated' are not specified, the 'date' is used. But 'date', 'datemodified' and 'datecreated' must be UNIX timestamps.

      Usually external repositories do not need to provide 'realthumbnail' and 'realicon' because 'thumbnail' and 'icon' are already image previews.

      If repository does not return 'icon', the filetype icon from moodle set is used.

      Repositories that need to be reviewed:

      alfresco
      boxnet
      dropbox
      flickr
      flickr_public
      googledocs
      merlot
      picasa
      s3
      url
      webdav
      wikimedia
      youtube

      Separate subtasks can be created for particular repositories

      For existing attributes see http://docs.moodle.org/dev/Repository_plugins
      Issue MDL-32600 to update documentation

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marina Marina Glancy
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: