← Back to team overview

mahara-contributors team mailing list archive

[Bug 1026275] [NEW] Imported content from Moodle stored as text/plain instead of text/html

 

Public bug reported:

When configuring a Mahoodle install, exported content from forum, blog,
and wiki modules appears to be stored in Mahara's database (in
artefact_file_files) with the filetype text/plain, rather than
text/html. This prevents users from embedding the imported content as an
HTML artefact within a page in Mahara (it instead has to be added as a
downloadable file).

This appears to be finfo() working as expected, reading the contents of
the file and not seeing opening HTML tags; however, downloading imported
content from the incoming folder in Mahara and re-uploading it appears
to properly set the mimetype correctly to text/html with no change to
the file's contents.

Version information:
Moodle 2.2.1
Mahara 1.5.1

** Affects: mahara
     Importance: Undecided
         Status: New


** Tags: api fileupload import mimetypes moodle portfolio

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1026275

Title:
  Imported content from Moodle stored as text/plain instead of text/html

Status in Mahara ePortfolio:
  New

Bug description:
  When configuring a Mahoodle install, exported content from forum,
  blog, and wiki modules appears to be stored in Mahara's database (in
  artefact_file_files) with the filetype text/plain, rather than
  text/html. This prevents users from embedding the imported content as
  an HTML artefact within a page in Mahara (it instead has to be added
  as a downloadable file).

  This appears to be finfo() working as expected, reading the contents
  of the file and not seeing opening HTML tags; however, downloading
  imported content from the incoming folder in Mahara and re-uploading
  it appears to properly set the mimetype correctly to text/html with no
  change to the file's contents.

  Version information:
  Moodle 2.2.1
  Mahara 1.5.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1026275/+subscriptions


Follow ups

References