Jan 29 2008

Moodle’s Filtering of Uploaded Files

Published by Kenneth Newquist at 11:41 am under Moodle, Web Applications and tagged:




Last week we had a faculty member upload an HTML photo gallery to his course in Moodle. Suddenly, the pages that had looked just fine offline were a mess within Moodle. A little digging revealed that Moodle was adding on the site’s style sheets to the uploaded files. Since the HTML documents in question didn’t have local styles for all of the Moodle ones, the layout exploded.

The reason for this? We had set “filteruploadedfiles” to “all” (this option is located under Administration > Appearance > Filter Settings > Filter uploaded files). When it’s turned on, Moodle will add the site CSS — but not the site headers and footers — to any HTML page that’s been uploaded to it.

It’s also used for automatic linking filtersĀ  (glossary, hyperlinks, etc.) so if you turn it off, you’ll lose that sort of filtering onĀ  uploaded HTML pages as well. We don’t anticipate that will be a problem however; the addition of the extra CSS to the page is.

No responses yet


Create a free edublog to get your own comment avatar (and more!)

Trackback URI | Comments RSS

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image