Moodle

add a hook for portfolio plugins to check for supported mimetypes.

Details

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

Activity

Hide
Dan Poltawski added a comment -

I'm supposed to be testing this aren't I?

I need to implement file_mime_check() by the looks of it.

Show
Dan Poltawski added a comment - I'm supposed to be testing this aren't I? I need to implement file_mime_check() by the looks of it.
Hide
Penny Leach added a comment -
  • check mime based on mimetype of format output (eg generated csv) rather than depending on a stored_file object
Show
Penny Leach added a comment -
  • check mime based on mimetype of format output (eg generated csv) rather than depending on a stored_file object
Hide
Penny Leach added a comment -

should be able to test now

Show
Penny Leach added a comment - should be able to test now
Hide
Dan Poltawski added a comment -

The hook seems to get called in the case of an image attached to a forum post. But not if I try and save the forum post.

Show
Dan Poltawski added a comment - The hook seems to get called in the case of an image attached to a forum post. But not if I try and save the forum post.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: